File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- // skip-filecheck
2
1
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
2
#![ crate_type = "lib" ]
4
3
@@ -20,18 +19,26 @@ pub trait Query {
20
19
// EMIT_MIR dyn_trait.mk_cycle.Inline.diff
21
20
#[ inline( always) ]
22
21
pub fn mk_cycle < V : Debug > ( c : & dyn Cache < V = V > ) {
22
+ // CHECK-LABEL: fn mk_cycle(
23
+ // CHECK-NOT: (inlined <dyn Cache<V = V> as Cache>::store_nocache)
23
24
c. store_nocache ( )
24
25
}
25
26
26
27
// EMIT_MIR dyn_trait.try_execute_query.Inline.diff
27
28
#[ inline( always) ]
28
29
pub fn try_execute_query < C : Cache > ( c : & C ) {
30
+ // CHECK-LABEL: fn try_execute_query(
31
+ // CHECK: (inlined mk_cycle::<<C as Cache>::V>)
29
32
mk_cycle ( c)
30
33
}
31
34
32
35
// EMIT_MIR dyn_trait.get_query.Inline.diff
33
36
#[ inline( always) ]
34
37
pub fn get_query < Q : Query , T > ( t : & T ) {
38
+ // CHECK-LABEL: fn get_query(
39
+ // CHECK-NOT: (inlined <Q as Query>::cache::<T>)
35
40
let c = Q :: cache ( t) ;
41
+ // CHECK: (inlined try_execute_query::<<Q as Query>::C>)
42
+ // CHECK: (inlined mk_cycle::<<Q as Query>::V>)
36
43
try_execute_query ( c)
37
44
}
You can’t perform that action at this time.
0 commit comments