diff options
| author | Patrick Walton <[email protected]> | 2011-05-13 14:38:05 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-13 14:39:00 -0700 |
| commit | e888fe6f9b8ed0c47df2ed17e50c2d391c1dc647 (patch) | |
| tree | 7c517d4618d7f541a1076c7a4a9e7b372bf38707 /src/comp/middle/ty.rs | |
| parent | rustc: lowercase the link and link::write modules (diff) | |
| download | rust-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.rs | 4 |
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. |