Skip to content

Commit 53de837

Browse files
committed
w
1 parent a8e9b46 commit 53de837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/reveal_all.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub(super) struct RevealAll;
88

99
impl<'tcx> crate::MirPass<'tcx> for RevealAll {
1010
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
11-
let typing_env = ty::TypingEnv::post_analysis(tcx, body.source.def_id());
11+
let typing_env = body.typing_env(tcx);
1212
RevealAllVisitor { tcx, typing_env }.visit_body_preserves_cfg(body);
1313
}
1414
}

0 commit comments

Comments
 (0)