rustc: Output an unimplemented message when alias encounters an unknown sequence type

This commit is contained in:
Patrick Walton 2011-06-21 10:59:05 -04:00
parent 062c6b946b
commit c109c9dd73

View File

@ -340,6 +340,10 @@ fn check_for(&ctx cx, &@ast::local local, &@ast::expr seq, &ast::block block,
if (mt.mut != ast::imm) { unsafe = [seq_t]; }
}
case (ty::ty_istr) { /* no-op */ }
case (_) {
cx.tcx.sess.span_unimpl(seq.span, "unknown seq type " +
pretty::ppaux::ty_to_str(*cx.tcx, seq_t));
}
}
auto new_sc =
@rec(root_vars=root_def,