Skip to content

Commit 528c723

Browse files
committed
More mono items are generated now
1 parent 6a6b330 commit 528c723

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/codegen-units/partitioning/vtable-through-const.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ mod mod1 {
3838
fn do_something_else(&self, x: T) -> T { x }
3939
}
4040

41+
//~ MONO_ITEM fn vtable_through_const::mod1[0]::id[0]<i64> @@ vtable_through_const-mod1.volatile[Internal]
4142
fn id<T>(x: T) -> T { x }
4243

4344
// These are referenced, so they produce mono-items (see start())
@@ -52,6 +53,8 @@ mod mod1 {
5253
fn do_something_else(&self) {}
5354
}
5455

56+
//~ MONO_ITEM fn vtable_through_const::mod1[0]::Trait2[0]::do_something[0]<u32> @@ vtable_through_const-mod1.volatile[Internal]
57+
//~ MONO_ITEM fn vtable_through_const::mod1[0]::Trait2[0]::do_something_else[0]<u32> @@ vtable_through_const-mod1.volatile[Internal]
5558
impl Trait2 for u32 {}
5659

5760
pub trait Trait2Gen<T> {
@@ -89,6 +92,8 @@ fn start(_: isize, _: *const *const u8) -> isize {
8992
// Same as above
9093
//~ MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[1]::do_something[0]<u8> @@ vtable_through_const-mod1.volatile[External]
9194
//~ MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[1]::do_something_else[0]<u8> @@ vtable_through_const-mod1.volatile[External]
95+
//~ MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[3]::do_something[0]<u8> @@ vtable_through_const-mod1.volatile[Internal]
96+
//~ MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[3]::do_something_else[0]<u8> @@ vtable_through_const-mod1.volatile[Internal]
9297
mod1::TRAIT1_GEN_REF.do_something(0u8);
9398

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

0 commit comments

Comments
 (0)