Skip to content

Commit e888fe6

Browse files
committed
rustc: Change ty::triv_ann() to take a node ID instead of a full annotation
1 parent 2f440b1 commit e888fe6

File tree

2 files changed

+118
-85
lines changed

2 files changed

+118
-85
lines changed

src/comp/middle/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,8 +1504,8 @@ fn ann_to_monotype(ctxt cx, &node_type_table ntt, ast::ann a) -> t {
15041504
}
15051505

15061506
// Turns a type into an ann_type, using defaults for other fields.
1507-
fn triv_ann(&ast::ann old, t typ) -> ast::ann {
1508-
ret ast::ann_type(ast::ann_tag(old), typ, none[vec[t]], none[@ts_ann]);
1507+
fn triv_ann(uint node_id, t typ) -> ast::ann {
1508+
ret ast::ann_type(node_id, typ, none[vec[t]], none[@ts_ann]);
15091509
}
15101510

15111511
// Returns the number of distinct type parameters in the given type.

0 commit comments

Comments
 (0)