Make the 'move mode but datum will not store' error fatal
This commit is contained in:
parent
8f34752975
commit
02b41097e4
|
@ -570,7 +570,7 @@ fn trans_arg_expr(bcx: block,
|
|||
if arg_mode == ast::by_move {
|
||||
// NDM---Doesn't seem like this should be necessary
|
||||
if !arg_datum.store_will_move() {
|
||||
bcx.sess().span_err(
|
||||
bcx.sess().span_bug(
|
||||
arg_expr.span,
|
||||
fmt!("move mode but datum will not store: %s",
|
||||
arg_datum.to_str(bcx.ccx())));
|
||||
|
|
Loading…
Reference in New Issue