Skip to content

Commit 02b4109

Browse files
committed
Make the 'move mode but datum will not store' error fatal
1 parent 8f34752 commit 02b4109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/trans/callee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ fn trans_arg_expr(bcx: block,
570570
if arg_mode == ast::by_move {
571571
// NDM---Doesn't seem like this should be necessary
572572
if !arg_datum.store_will_move() {
573-
bcx.sess().span_err(
573+
bcx.sess().span_bug(
574574
arg_expr.span,
575575
fmt!("move mode but datum will not store: %s",
576576
arg_datum.to_str(bcx.ccx())));

0 commit comments

Comments
 (0)