File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ impl<'tcx> MirPass<'tcx> for RevealAll {
1111 fn run_pass ( & self , tcx : TyCtxt < ' tcx > , body : & mut Body < ' tcx > ) {
1212 // This pass must run before inlining, since we insert callee bodies in RevealAll mode.
1313 // Do not apply this transformation to generators.
14- if ( tcx. sess . mir_opt_level ( ) >= 3 || ! super :: inline:: is_enabled ( tcx) )
14+ if ( tcx. sess . mir_opt_level ( ) >= 3 || super :: inline:: is_enabled ( tcx) )
1515 && body. generator . is_none ( )
1616 {
1717 let param_env = tcx. param_env_reveal_all_normalized ( body. source . def_id ( ) ) ;
Original file line number Diff line number Diff line change 1- // EMIT_MIR issue_78192.f.InstCombine.diff
1+ // compile-flags: -Zmir-opt-level=1 -Zinline-mir
22pub fn f < T > ( a : & T ) -> * const T {
33 let b: & * const T = & ( a as * const T ) ;
44 * b
@@ -7,3 +7,5 @@ pub fn f<T>(a: &T) -> *const T {
77fn main ( ) {
88 f ( & 2 ) ;
99}
10+
11+ // EMIT_MIR issue_78192.f.InstCombine.diff
You can’t perform that action at this time.
0 commit comments