File tree 2 files changed +4
-2
lines changed
compiler/rustc_mir_transform/src
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 {
11
11
fn run_pass ( & self , tcx : TyCtxt < ' tcx > , body : & mut Body < ' tcx > ) {
12
12
// This pass must run before inlining, since we insert callee bodies in RevealAll mode.
13
13
// 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) )
15
15
&& body. generator . is_none ( )
16
16
{
17
17
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
2
2
pub fn f < T > ( a : & T ) -> * const T {
3
3
let b: & * const T = & ( a as * const T ) ;
4
4
* b
@@ -7,3 +7,5 @@ pub fn f<T>(a: &T) -> *const T {
7
7
fn main ( ) {
8
8
f ( & 2 ) ;
9
9
}
10
+
11
+ // EMIT_MIR issue_78192.f.InstCombine.diff
You can’t perform that action at this time.
0 commit comments