Skip to content

Commit

Permalink
Change a span_err back to span_fatal
Browse files Browse the repository at this point in the history
Closes #2073
  • Loading branch information
marijnh committed Mar 30, 2012
1 parent 6e8cf93 commit a4906b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustc/middle/typeck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
let variants = ty::enum_variants(tcx, id);
if vec::len(*variants) != 1u ||
vec::len(variants[0].args) != 1u {
tcx.sess.span_err(expr.span,
tcx.sess.span_fatal(expr.span,
"can only dereference enums " +
"with a single variant which has a "
+ "single argument");
Expand Down

0 comments on commit a4906b8

Please sign in to comment.