1
Fork 0

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:
Felix S. Klock II 2017-10-04 11:02:26 +02:00
parent fdd7d13c24
commit 43fb82d2fa
5 changed files with 99 additions and 35 deletions

View file

@ -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 {