Skip to content

Commit 85a1eff

Browse files
committed
auto merge of #10590 : sanxiyn/rust/ty-mac, r=thestinger
2 parents ea5d1df + 8470639 commit 85a1eff

File tree

5 files changed

+1
-10
lines changed

5 files changed

+1
-10
lines changed

src/librustc/middle/typeck/astconv.rs

-4
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,6 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:RegionScope>(
560560
ast_ty.span,
561561
"found `ty_infer` in unexpected place");
562562
}
563-
ast::ty_mac(_) => {
564-
tcx.sess.span_bug(ast_ty.span,
565-
"found `ty_mac` in unexpected place");
566-
}
567563
};
568564

569565
tcx.ast_ty_to_ty_cache.insert(ast_ty.id, ty::atttce_resolved(typ));

src/libsyntax/ast.rs

-1
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,6 @@ pub enum ty_ {
861861
ty_bare_fn(@TyBareFn),
862862
ty_tup(~[Ty]),
863863
ty_path(Path, Option<OptVec<TyParamBound>>, NodeId), // for #7264; see above
864-
ty_mac(mac),
865864
ty_typeof(@Expr),
866865
// ty_infer means the type should be inferred instead of it having been
867866
// specified. This should only appear at the "top level" of a type and not

src/libsyntax/fold.rs

-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ pub trait ast_fold {
277277
ty_fixed_length_vec(ref mt, e) => {
278278
ty_fixed_length_vec(fold_mt(mt, self), self.fold_expr(e))
279279
}
280-
ty_mac(ref mac) => ty_mac(self.fold_mac(mac)),
281280
ty_typeof(expr) => ty_typeof(self.fold_expr(expr)),
282281
};
283282
Ty {

src/libsyntax/print/pprust.rs

-3
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,6 @@ pub fn print_type(s: @ps, ty: &ast::Ty) {
459459
print_expr(s, e);
460460
word(s.s, ")");
461461
}
462-
ast::ty_mac(_) => {
463-
fail!("print_type doesn't know how to print a ty_mac");
464-
}
465462
ast::ty_infer => {
466463
fail!("print_type shouldn't see a ty_infer");
467464
}

src/libsyntax/visit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub fn walk_ty<E:Clone, V:Visitor<E>>(visitor: &mut V, typ: &Ty, env: E) {
314314
ty_typeof(expression) => {
315315
visitor.visit_expr(expression, env)
316316
}
317-
ty_nil | ty_bot | ty_mac(_) | ty_infer => ()
317+
ty_nil | ty_bot | ty_infer => ()
318318
}
319319
}
320320

0 commit comments

Comments
 (0)