aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util/common.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-13 17:53:42 -0700
committerPatrick Walton <[email protected]>2011-05-13 17:55:07 -0700
commitef75860a0a72f79f97216f8aaa5b388d98da6480 (patch)
tree48a4b22a2dd685c05c310f5a647186bca59582d8 /src/comp/util/common.rs
parent'with' no longer a token; whitespace police. (diff)
downloadrust-ef75860a0a72f79f97216f8aaa5b388d98da6480.tar.xz
rust-ef75860a0a72f79f97216f8aaa5b388d98da6480.zip
rustc: Write nil types into the node type table wherever plain_ann() is usedHEADmaster
Diffstat (limited to 'src/comp/util/common.rs')
-rw-r--r--src/comp/util/common.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index dc5e6d08..bccd18ed 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -117,11 +117,6 @@ fn field_exprs(vec[ast::field] fields) -> vec [@ast::expr] {
ret _vec::map[ast::field, @ast::expr](f, fields);
}
-fn plain_ann(&ast::ann old, middle::ty::ctxt tcx) -> ast::ann {
- ret ast::ann_type(ast::ann_tag(old), middle::ty::mk_nil(tcx),
- none[vec[middle::ty::t]], none[@ts_ann]);
-}
-
fn expr_to_str(&@ast::expr e) -> str {
let str_writer s = string_writer();
auto out_ = mkstate(s.get_writer(), 80u);