diff options
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. |