Skip to content

Commit c109c9d

Browse files
committed
rustc: Output an unimplemented message when alias encounters an unknown sequence type
1 parent 062c6b9 commit c109c9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/comp/middle/alias.rs

+4
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ fn check_for(&ctx cx, &@ast::local local, &@ast::expr seq, &ast::block block,
340340
if (mt.mut != ast::imm) { unsafe = [seq_t]; }
341341
}
342342
case (ty::ty_istr) { /* no-op */ }
343+
case (_) {
344+
cx.tcx.sess.span_unimpl(seq.span, "unknown seq type " +
345+
pretty::ppaux::ty_to_str(*cx.tcx, seq_t));
346+
}
343347
}
344348
auto new_sc =
345349
@rec(root_vars=root_def,

0 commit comments

Comments
 (0)