We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e9b46 commit 53de837Copy full SHA for 53de837
compiler/rustc_mir_transform/src/reveal_all.rs
@@ -8,7 +8,7 @@ pub(super) struct RevealAll;
8
9
impl<'tcx> crate::MirPass<'tcx> for RevealAll {
10
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
11
- let typing_env = ty::TypingEnv::post_analysis(tcx, body.source.def_id());
+ let typing_env = body.typing_env(tcx);
12
RevealAllVisitor { tcx, typing_env }.visit_body_preserves_cfg(body);
13
}
14
0 commit comments