From e888fe6f9b8ed0c47df2ed17e50c2d391c1dc647 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 13 May 2011 14:38:05 -0700 Subject: rustc: Change ty::triv_ann() to take a node ID instead of a full annotation --- src/comp/middle/ty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/middle/ty.rs') 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. -- cgit v1.2.3