blob: ce7fe9c3a4ff3ae4c1fe30fed39c774d4f329315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
// We specify incremental here because we want to test the partitioning for
// incremental compilation
// incremental
// compile-flags:-Zprint-mono-items=eager
#![allow(dead_code)]
#![crate_type="lib"]
//~ MONO_ITEM fn foo @@ regular_modules[Internal]
fn foo() {}
//~ MONO_ITEM fn bar @@ regular_modules[Internal]
fn bar() {}
//~ MONO_ITEM static BAZ @@ regular_modules[Internal]
static BAZ: u64 = 0;
mod mod1 {
//~ MONO_ITEM fn mod1::foo @@ regular_modules-mod1[Internal]
fn foo() {}
//~ MONO_ITEM fn mod1::bar @@ regular_modules-mod1[Internal]
fn bar() {}
//~ MONO_ITEM static mod1::BAZ @@ regular_modules-mod1[Internal]
static BAZ: u64 = 0;
mod mod1 {
//~ MONO_ITEM fn mod1::mod1::foo @@ regular_modules-mod1-mod1[Internal]
fn foo() {}
//~ MONO_ITEM fn mod1::mod1::bar @@ regular_modules-mod1-mod1[Internal]
fn bar() {}
//~ MONO_ITEM static mod1::mod1::BAZ @@ regular_modules-mod1-mod1[Internal]
static BAZ: u64 = 0;
}
mod mod2 {
//~ MONO_ITEM fn mod1::mod2::foo @@ regular_modules-mod1-mod2[Internal]
fn foo() {}
//~ MONO_ITEM fn mod1::mod2::bar @@ regular_modules-mod1-mod2[Internal]
fn bar() {}
//~ MONO_ITEM static mod1::mod2::BAZ @@ regular_modules-mod1-mod2[Internal]
static BAZ: u64 = 0;
}
}
mod mod2 {
//~ MONO_ITEM fn mod2::foo @@ regular_modules-mod2[Internal]
fn foo() {}
//~ MONO_ITEM fn mod2::bar @@ regular_modules-mod2[Internal]
fn bar() {}
//~ MONO_ITEM static mod2::BAZ @@ regular_modules-mod2[Internal]
static BAZ: u64 = 0;
mod mod1 {
//~ MONO_ITEM fn mod2::mod1::foo @@ regular_modules-mod2-mod1[Internal]
fn foo() {}
//~ MONO_ITEM fn mod2::mod1::bar @@ regular_modules-mod2-mod1[Internal]
fn bar() {}
//~ MONO_ITEM static mod2::mod1::BAZ @@ regular_modules-mod2-mod1[Internal]
static BAZ: u64 = 0;
}
mod mod2 {
//~ MONO_ITEM fn mod2::mod2::foo @@ regular_modules-mod2-mod2[Internal]
fn foo() {}
//~ MONO_ITEM fn mod2::mod2::bar @@ regular_modules-mod2-mod2[Internal]
fn bar() {}
//~ MONO_ITEM static mod2::mod2::BAZ @@ regular_modules-mod2-mod2[Internal]
static BAZ: u64 = 0;
}
}
|