Skip to content

Commit 019763d

Browse files
committed
random mutation to fix codegen-units test
1 parent 0aa1c4a commit 019763d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/codegen-units/partitioning/vtable-through-const.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//@ incremental
33
//@ compile-flags:-Zprint-mono-items=lazy
44
//@ 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
57

68
// This test case makes sure, that references made through constants are
79
// recorded properly in the InliningMap.
@@ -51,8 +53,8 @@ mod mod1 {
5153
fn do_something_else(&self) {}
5254
}
5355

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]
5658
impl Trait2 for NeedsDrop {}
5759

5860
pub trait Trait2Gen<T> {
@@ -95,8 +97,8 @@ pub fn start(_: isize, _: *const *const u8) -> isize {
9597
// Same as above
9698
//~ MONO_ITEM fn <mod1::NeedsDrop as mod1::Trait1Gen<u8>>::do_something @@ vtable_through_const-mod1.volatile[External]
9799
//~ 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]
100102
mod1::TRAIT1_GEN_REF.do_something(0u8);
101103

102104
//~ MONO_ITEM fn mod1::id::<char> @@ vtable_through_const-mod1.volatile[External]

0 commit comments

Comments
 (0)