Skip to content

Commit 064e47b

Browse files
authored
Rollup merge of #81116 - bugadani:body-span, r=wesleywiser
ConstProp: Copy body span instead of querying it
2 parents b4defec + 428f948 commit 064e47b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/const_prop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'tcx> MirPass<'tcx> for ConstProp {
139139
Default::default(),
140140
body.arg_count,
141141
Default::default(),
142-
tcx.def_span(def_id),
142+
body.span,
143143
body.generator_kind,
144144
);
145145

0 commit comments

Comments
 (0)