1
Fork 0

Copy body span instead of querying it

This commit is contained in:
Dániel Buga 2021-01-17 14:50:47 +01:00
parent 95cbcad920
commit 428f948096

View file

@ -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,
);