Rollup merge of #81116 - bugadani:body-span, r=wesleywiser
ConstProp: Copy body span instead of querying it
This commit is contained in:
commit
064e47b99e
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ impl<'tcx> MirPass<'tcx> for ConstProp {
|
|||
Default::default(),
|
||||
body.arg_count,
|
||||
Default::default(),
|
||||
tcx.def_span(def_id),
|
||||
body.span,
|
||||
body.generator_kind,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue