aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/ty.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-13 14:38:05 -0700
committerPatrick Walton <[email protected]>2011-05-13 14:39:00 -0700
commite888fe6f9b8ed0c47df2ed17e50c2d391c1dc647 (patch)
tree7c517d4618d7f541a1076c7a4a9e7b372bf38707 /src/comp/middle/ty.rs
parentrustc: lowercase the link and link::write modules (diff)
downloadrust-e888fe6f9b8ed0c47df2ed17e50c2d391c1dc647.tar.xz
rust-e888fe6f9b8ed0c47df2ed17e50c2d391c1dc647.zip
rustc: Change ty::triv_ann() to take a node ID instead of a full annotation
Diffstat (limited to 'src/comp/middle/ty.rs')
-rw-r--r--src/comp/middle/ty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs
index b3d9977e..5957c1fd 100644
--- a/src/comp/middle/ty.rs
+++ b/src/comp/middle/ty.rs
@@ -1504,8 +1504,8 @@ fn ann_to_monotype(ctxt cx, &node_type_table ntt, ast::ann a) -> t {
}
// Turns a type into an ann_type, using defaults for other fields.
-fn triv_ann(&ast::ann old, t typ) -> ast::ann {
- ret ast::ann_type(ast::ann_tag(old), typ, none[vec[t]], none[@ts_ann]);
+fn triv_ann(uint node_id, t typ) -> ast::ann {
+ ret ast::ann_type(node_id, typ, none[vec[t]], none[@ts_ann]);
}
// Returns the number of distinct type parameters in the given type.