Skip to content

Commit b05dc1c

Browse files
committed
---
yaml --- r: 89950 b: refs/heads/master c: 8470639 h: refs/heads/master v: v3
1 parent 118ac61 commit b05dc1c

File tree

6 files changed

+2
-11
lines changed

6 files changed

+2
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ea5d1dfb1cab80bedf372d8b24a726ed054f2417
2+
refs/heads/master: 8470639319104f955eeceea58a62361aec733114
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/librustc/middle/typeck/astconv.rs

Lines changed: 0 additions & 4 deletions
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));

trunk/src/libsyntax/ast.rs

Lines changed: 0 additions & 1 deletion
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

trunk/src/libsyntax/fold.rs

Lines changed: 0 additions & 1 deletion
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 {

trunk/src/libsyntax/print/pprust.rs

Lines changed: 0 additions & 3 deletions
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
}

trunk/src/libsyntax/visit.rs

Lines changed: 1 addition & 1 deletion
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)