提交 a6ee46db 编写于 作者: P Patrick Walton

rustc: Resolve expressions in literal and range patterns

上级 71fd542f
......@@ -17,7 +17,8 @@
import syntax::ast::{item_class, item_const, item_enum, item_fn, item_mac};
import syntax::ast::{item_foreign_mod, item_trait, item_impl, item_mod};
import syntax::ast::{item_ty, local, local_crate, method, node_id, pat};
import syntax::ast::{pat_enum, pat_ident, path, prim_ty, stmt_decl, ty};
import syntax::ast::{pat_enum, pat_ident, pat_lit, pat_range, path, prim_ty};
import syntax::ast::{stmt_decl, ty};
import syntax::ast::{ty_bool, ty_char, ty_constr, ty_f, ty_f32, ty_f64};
import syntax::ast::{ty_float, ty_i, ty_i16, ty_i32, ty_i64, ty_i8, ty_int};
import syntax::ast::{ty_param, ty_path, ty_str, ty_u, ty_u16, ty_u32, ty_u64};
......@@ -3640,6 +3641,15 @@ enum variant",
}
}
pat_lit(expr) {
self.resolve_expr(expr, visitor);
}
pat_range(first_expr, last_expr) {
self.resolve_expr(first_expr, visitor);
self.resolve_expr(last_expr, visitor);
}
_ {
// Nothing to do.
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册