]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/inline/dyn_trait.get_query.Inline.diff
Update unsuspicious file list
[rustc.git] / src / test / mir-opt / inline / dyn_trait.get_query.Inline.diff
CommitLineData
04454e1e
FG
1- // MIR for `get_query` before Inline
2+ // MIR for `get_query` after Inline
3
4 fn get_query(_1: &T) -> () {
487cf647
FG
5 debug t => _1; // in scope 0 at $DIR/dyn_trait.rs:+0:31: +0:32
6 let mut _0: (); // return place in scope 0 at $DIR/dyn_trait.rs:+0:38: +0:38
7 let _2: &<Q as Query>::C; // in scope 0 at $DIR/dyn_trait.rs:+1:9: +1:10
8 let mut _3: &T; // in scope 0 at $DIR/dyn_trait.rs:+1:22: +1:23
9 let mut _4: &<Q as Query>::C; // in scope 0 at $DIR/dyn_trait.rs:+2:23: +2:24
04454e1e 10 scope 1 {
487cf647
FG
11 debug c => _2; // in scope 1 at $DIR/dyn_trait.rs:+1:9: +1:10
12+ scope 2 (inlined try_execute_query::<<Q as Query>::C>) { // at $DIR/dyn_trait.rs:34:5: 34:25
13+ debug c => _4; // in scope 2 at $DIR/dyn_trait.rs:26:36: 26:37
14+ let mut _5: &dyn Cache<V = <Q as Query>::V>; // in scope 2 at $DIR/dyn_trait.rs:27:14: 27:15
15+ scope 3 (inlined mk_cycle::<<Q as Query>::V>) { // at $DIR/dyn_trait.rs:27:5: 27:16
16+ debug c => _5; // in scope 3 at $DIR/dyn_trait.rs:20:27: 20:28
04454e1e
FG
17+ }
18+ }
19 }
20
21 bb0: {
487cf647
FG
22 StorageLive(_2); // scope 0 at $DIR/dyn_trait.rs:+1:9: +1:10
23 StorageLive(_3); // scope 0 at $DIR/dyn_trait.rs:+1:22: +1:23
24 _3 = &(*_1); // scope 0 at $DIR/dyn_trait.rs:+1:22: +1:23
25 _2 = <Q as Query>::cache::<T>(move _3) -> bb1; // scope 0 at $DIR/dyn_trait.rs:+1:13: +1:24
04454e1e 26 // mir::Constant
487cf647 27 // + span: $DIR/dyn_trait.rs:33:13: 33:21
04454e1e 28 // + user_ty: UserType(0)
2b03887a 29 // + literal: Const { ty: for<'a> fn(&'a T) -> &'a <Q as Query>::C {<Q as Query>::cache::<T>}, val: Value(<ZST>) }
04454e1e
FG
30 }
31
32 bb1: {
487cf647
FG
33 StorageDead(_3); // scope 0 at $DIR/dyn_trait.rs:+1:23: +1:24
34 StorageLive(_4); // scope 1 at $DIR/dyn_trait.rs:+2:23: +2:24
35 _4 = &(*_2); // scope 1 at $DIR/dyn_trait.rs:+2:23: +2:24
36- _0 = try_execute_query::<<Q as Query>::C>(move _4) -> bb2; // scope 1 at $DIR/dyn_trait.rs:+2:5: +2:25
37+ StorageLive(_5); // scope 2 at $DIR/dyn_trait.rs:27:14: 27:15
38+ _5 = move _4 as &dyn Cache<V = <Q as Query>::V> (Pointer(Unsize)); // scope 2 at $DIR/dyn_trait.rs:27:14: 27:15
39+ _0 = <dyn Cache<V = <Q as Query>::V> as Cache>::store_nocache(move _5) -> bb2; // scope 3 at $DIR/dyn_trait.rs:21:5: 21:22
04454e1e 40 // mir::Constant
487cf647 41- // + span: $DIR/dyn_trait.rs:34:5: 34:22
2b03887a 42- // + literal: Const { ty: for<'a> fn(&'a <Q as Query>::C) {try_execute_query::<<Q as Query>::C>}, val: Value(<ZST>) }
487cf647 43+ // + span: $DIR/dyn_trait.rs:21:7: 21:20
2b03887a 44+ // + literal: Const { ty: for<'a> fn(&'a dyn Cache<V = <Q as Query>::V>) {<dyn Cache<V = <Q as Query>::V> as Cache>::store_nocache}, val: Value(<ZST>) }
04454e1e
FG
45 }
46
47 bb2: {
487cf647
FG
48+ StorageDead(_5); // scope 2 at $DIR/dyn_trait.rs:27:15: 27:16
49 StorageDead(_4); // scope 1 at $DIR/dyn_trait.rs:+2:24: +2:25
50 StorageDead(_2); // scope 0 at $DIR/dyn_trait.rs:+3:1: +3:2
51 return; // scope 0 at $DIR/dyn_trait.rs:+3:2: +3:2
04454e1e
FG
52 }
53 }
54