mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
rustc: Output an unimplemented message when alias encounters an unknown sequence type
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user