Use a function to access the Hir map to be able to turn it into a query later
This commit is contained in:
parent
367e783e6f
commit
a70babed03
160 changed files with 1220 additions and 1210 deletions
|
@ -38,7 +38,7 @@ impl MirPass for ElaborateDrops {
|
|||
{
|
||||
debug!("elaborate_drops({:?} @ {:?})", src, mir.span);
|
||||
|
||||
let id = tcx.hir.as_local_node_id(src.def_id).unwrap();
|
||||
let id = tcx.hir().as_local_node_id(src.def_id).unwrap();
|
||||
let param_env = tcx.param_env(src.def_id).with_reveal_all();
|
||||
let move_data = match MoveData::gather_moves(mir, tcx) {
|
||||
Ok(move_data) => move_data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue