mir-borrowck: Gather move errors during MoveData construction and report them.
Currently is using DUMMY_SP as the associated span; a follow-up commit will pass in appropriate spans when constructing the errors.
This commit is contained in:
parent
fdd7d13c24
commit
43fb82d2fa
5 changed files with 99 additions and 35 deletions
|
@ -45,7 +45,7 @@ impl MirPass for ElaborateDrops {
|
|||
}
|
||||
let id = src.item_id();
|
||||
let param_env = tcx.param_env(tcx.hir.local_def_id(id));
|
||||
let move_data = MoveData::gather_moves(mir, tcx, param_env);
|
||||
let move_data = MoveData::gather_moves(mir, tcx, param_env).unwrap();
|
||||
let elaborate_patch = {
|
||||
let mir = &*mir;
|
||||
let env = MoveDataParamEnv {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue