about summary refs log tree commit diff
path: root/src/test/mir-opt/inline/inline_cycle.two.Inline.diff
diff options
context:
space:
mode:
authorJakob Degen <jakob.e.degen@gmail.com>2023-01-01 22:01:29 -0800
committerJakob Degen <jakob.e.degen@gmail.com>2023-01-01 22:01:29 -0800
commitee6503a706da6e423b7d5fa88ea41cc2f7f079fe (patch)
tree5968386e5f8698b49acf72746f2bc60e049db918 /src/test/mir-opt/inline/inline_cycle.two.Inline.diff
parentbb6e76df06dcbdb96e634eb28a49f161d70ab844 (diff)
downloadrust-ee6503a706da6e423b7d5fa88ea41cc2f7f079fe.tar.gz
rust-ee6503a706da6e423b7d5fa88ea41cc2f7f079fe.zip
Reenable limited top-down MIR inlining
Diffstat (limited to 'src/test/mir-opt/inline/inline_cycle.two.Inline.diff')
-rw-r--r--src/test/mir-opt/inline/inline_cycle.two.Inline.diff7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/mir-opt/inline/inline_cycle.two.Inline.diff b/src/test/mir-opt/inline/inline_cycle.two.Inline.diff
index a940848c269..64c0065b543 100644
--- a/src/test/mir-opt/inline/inline_cycle.two.Inline.diff
+++ b/src/test/mir-opt/inline/inline_cycle.two.Inline.diff
@@ -9,6 +9,8 @@
 +         debug f => _2;                   // in scope 1 at $DIR/inline_cycle.rs:53:22: 53:23
 +         let _3: ();                      // in scope 1 at $DIR/inline_cycle.rs:54:5: 54:8
 +         let mut _4: ();                  // in scope 1 at $DIR/inline_cycle.rs:54:5: 54:8
++         scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) { // at $DIR/inline_cycle.rs:54:5: 54:8
++         }
 +     }
   
       bb0: {
@@ -24,10 +26,7 @@
                                            // + literal: Const { ty: fn() {f}, val: Value(<ZST>) }
 +         StorageLive(_3);                 // scope 1 at $DIR/inline_cycle.rs:54:5: 54:8
 +         StorageLive(_4);                 // scope 1 at $DIR/inline_cycle.rs:54:5: 54:8
-+         _3 = <fn() {f} as FnOnce<()>>::call_once(move _2, move _4) -> bb1; // scope 1 at $DIR/inline_cycle.rs:54:5: 54:8
-+                                          // mir::Constant
-+                                          // + span: $DIR/inline_cycle.rs:54:5: 54:6
-+                                          // + literal: Const { ty: extern "rust-call" fn(fn() {f}, ()) -> <fn() {f} as FnOnce<()>>::Output {<fn() {f} as FnOnce<()>>::call_once}, val: Value(<ZST>) }
++         _3 = move _2() -> bb1;           // scope 2 at $SRC_DIR/core/src/ops/function.rs:LL:COL
       }
   
       bb1: {