Ensure valid local_data is set for custom mir building
MIR unsafety checking requires this to be valid
This commit is contained in:
parent
f03c2aef47
commit
adf1717219
2 changed files with 7 additions and 1 deletions
|
@ -487,6 +487,7 @@ fn construct_fn<'tcx>(
|
|||
return custom::build_custom_mir(
|
||||
tcx,
|
||||
fn_def.did.to_def_id(),
|
||||
fn_id,
|
||||
thir,
|
||||
expr,
|
||||
arguments,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue