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