Skip to content

Commit 296820f

Browse files
committed
---
yaml --- r: 2832 b: refs/heads/master c: 0c5a55f h: refs/heads/master v: v3
1 parent 547f67a commit 296820f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 193c1fac4cfb7f5293ad8a5f50b41a614ca27068
2+
refs/heads/master: 0c5a55f2755138a6ddd2fbdfc7b11a4117409c5e

trunk/src/comp/middle/ty.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,17 @@ fn expr_has_ty_params(&node_type_table ntt, &@ast::expr expr) -> bool {
18111811
ret ann_has_type_params(ntt, expr_ann(expr));
18121812
}
18131813

1814+
fn decl_local_ty(&ctxt cx, &@ast::decl d) -> t {
1815+
alt (d.node) {
1816+
case (ast::decl_local(?l)) {
1817+
ret ann_to_type(cx.node_types, l.ann);
1818+
}
1819+
case (_) {
1820+
cx.sess.bug("decl_local_ty called on an item decl");
1821+
}
1822+
}
1823+
}
1824+
18141825
fn stmt_ann(&@ast::stmt s) -> ast::ann {
18151826
alt (s.node) {
18161827
case (ast::stmt_decl(_, ?a)) { ret a; }

0 commit comments

Comments
 (0)