We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193c1fa commit 0c5a55fCopy full SHA for 0c5a55f
src/comp/middle/ty.rs
@@ -1811,6 +1811,17 @@ fn expr_has_ty_params(&node_type_table ntt, &@ast::expr expr) -> bool {
1811
ret ann_has_type_params(ntt, expr_ann(expr));
1812
}
1813
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
+
1825
fn stmt_ann(&@ast::stmt s) -> ast::ann {
1826
alt (s.node) {
1827
case (ast::stmt_decl(_, ?a)) { ret a; }
0 commit comments