|
2 | 2 | //@ incremental |
3 | 3 | //@ compile-flags:-Zprint-mono-items=lazy |
4 | 4 | //@ compile-flags:-Zinline-in-all-cgus |
| 5 | +// Need to disable optimizations to ensure consistent output across all CI runners. |
| 6 | +//@ compile-flags:-Copt-level=0 |
5 | 7 |
|
6 | 8 | // This test case makes sure, that references made through constants are |
7 | 9 | // recorded properly in the InliningMap. |
@@ -51,8 +53,8 @@ mod mod1 { |
51 | 53 | fn do_something_else(&self) {} |
52 | 54 | } |
53 | 55 |
|
54 | | - //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2>::do_something @@ vtable_through_const-mod1.volatile[Internal] |
55 | | - //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2>::do_something_else @@ vtable_through_const-mod1.volatile[Internal] |
| 56 | + //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2>::do_something @@ vtable_through_const-mod1.volatile[External] |
| 57 | + //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2>::do_something_else @@ vtable_through_const-mod1.volatile[External] |
56 | 58 | impl Trait2 for NeedsDrop {} |
57 | 59 |
|
58 | 60 | pub trait Trait2Gen<T> { |
@@ -95,8 +97,8 @@ pub fn start(_: isize, _: *const *const u8) -> isize { |
95 | 97 | // Same as above |
96 | 98 | //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait1Gen<u8>>::do_something @@ vtable_through_const-mod1.volatile[External] |
97 | 99 | //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait1Gen<u8>>::do_something_else @@ vtable_through_const-mod1.volatile[External] |
98 | | - //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2Gen<u8>>::do_something @@ vtable_through_const-mod1.volatile[Internal] |
99 | | - //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2Gen<u8>>::do_something_else @@ vtable_through_const-mod1.volatile[Internal] |
| 100 | + //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2Gen<u8>>::do_something @@ vtable_through_const-mod1.volatile[External] |
| 101 | + //~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait2Gen<u8>>::do_something_else @@ vtable_through_const-mod1.volatile[External] |
100 | 102 | mod1::TRAIT1_GEN_REF.do_something(0u8); |
101 | 103 |
|
102 | 104 | //~ MONO_ITEM fn mod1::id::<char> @@ vtable_through_const-mod1.volatile[External] |
|
0 commit comments