Make the 'move mode but datum will not store' error fatal
This commit is contained in:
parent
8f34752975
commit
02b41097e4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue