diff options
| author | bors <bors@rust-lang.org> | 2013-11-21 06:16:49 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-21 06:16:49 -0800 |
| commit | 85a1eff3a99c5d60bf34ca6f08f87ed341329af0 (patch) | |
| tree | 630e72484fa4b858737a5ab04c54779d52bf923f /src/libsyntax | |
| parent | ea5d1dfb1cab80bedf372d8b24a726ed054f2417 (diff) | |
| parent | 8470639319104f955eeceea58a62361aec733114 (diff) | |
| download | rust-85a1eff3a99c5d60bf34ca6f08f87ed341329af0.tar.gz rust-85a1eff3a99c5d60bf34ca6f08f87ed341329af0.zip | |
auto merge of #10590 : sanxiyn/rust/ty-mac, r=thestinger
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/fold.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/visit.rs | 2 |
4 files changed, 1 insertions, 6 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 79cf52d8da7..4cba8093980 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -861,7 +861,6 @@ pub enum ty_ { ty_bare_fn(@TyBareFn), ty_tup(~[Ty]), ty_path(Path, Option<OptVec<TyParamBound>>, NodeId), // for #7264; see above - ty_mac(mac), ty_typeof(@Expr), // ty_infer means the type should be inferred instead of it having been // specified. This should only appear at the "top level" of a type and not diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 62592650416..e81973835fe 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -277,7 +277,6 @@ pub trait ast_fold { ty_fixed_length_vec(ref mt, e) => { ty_fixed_length_vec(fold_mt(mt, self), self.fold_expr(e)) } - ty_mac(ref mac) => ty_mac(self.fold_mac(mac)), ty_typeof(expr) => ty_typeof(self.fold_expr(expr)), }; Ty { diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 839a7cd9d57..e3e61e50d6b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -459,9 +459,6 @@ pub fn print_type(s: @ps, ty: &ast::Ty) { print_expr(s, e); word(s.s, ")"); } - ast::ty_mac(_) => { - fail!("print_type doesn't know how to print a ty_mac"); - } ast::ty_infer => { fail!("print_type shouldn't see a ty_infer"); } diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index aa712cae502..7c56c26d46b 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -314,7 +314,7 @@ pub fn walk_ty<E:Clone, V:Visitor<E>>(visitor: &mut V, typ: &Ty, env: E) { ty_typeof(expression) => { visitor.visit_expr(expression, env) } - ty_nil | ty_bot | ty_mac(_) | ty_infer => () + ty_nil | ty_bot | ty_infer => () } } |
