|
| 1 | +error: Direct: pub, Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
| 2 | + --> $DIR/effective_visibilities.rs:1:1 |
| 3 | + | |
| 4 | +LL | / #![rustc_effective_visibility] |
| 5 | +LL | | #![feature(rustc_attrs)] |
| 6 | +LL | | |
| 7 | +LL | | #[rustc_effective_visibility] |
| 8 | +... | |
| 9 | +LL | | |
| 10 | +LL | | fn main() {} |
| 11 | + | |____________^ |
| 12 | + |
1 | 13 | error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub(crate), ReachableThroughImplTrait: pub(crate) |
2 | | - --> $DIR/effective_visibilities.rs:4:1 |
| 14 | + --> $DIR/effective_visibilities.rs:5:1 |
3 | 15 | | |
4 | 16 | LL | mod outer { |
5 | 17 | | ^^^^^^^^^ |
6 | 18 |
|
7 | 19 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
8 | | - --> $DIR/effective_visibilities.rs:6:5 |
| 20 | + --> $DIR/effective_visibilities.rs:7:5 |
9 | 21 | | |
10 | 22 | LL | pub mod inner1 { |
11 | 23 | | ^^^^^^^^^^^^^^ |
12 | 24 |
|
13 | 25 | error: not in the table |
14 | | - --> $DIR/effective_visibilities.rs:9:9 |
| 26 | + --> $DIR/effective_visibilities.rs:10:9 |
15 | 27 | | |
16 | 28 | LL | extern "C" {} |
17 | 29 | | ^^^^^^^^^^^^^ |
18 | 30 |
|
19 | 31 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
20 | | - --> $DIR/effective_visibilities.rs:12:9 |
| 32 | + --> $DIR/effective_visibilities.rs:13:9 |
21 | 33 | | |
22 | 34 | LL | pub trait PubTrait { |
23 | 35 | | ^^^^^^^^^^^^^^^^^^ |
24 | 36 |
|
25 | 37 | error: Direct: pub(self), Reexported: pub(self), Reachable: pub(self), ReachableThroughImplTrait: pub(self) |
26 | | - --> $DIR/effective_visibilities.rs:20:9 |
| 38 | + --> $DIR/effective_visibilities.rs:21:9 |
27 | 39 | | |
28 | 40 | LL | struct PrivStruct; |
29 | 41 | | ^^^^^^^^^^^^^^^^^ |
30 | 42 |
|
31 | 43 | error: Direct: pub(self), Reexported: pub(self), Reachable: pub(self), ReachableThroughImplTrait: pub(self) |
32 | | - --> $DIR/effective_visibilities.rs:20:9 |
| 44 | + --> $DIR/effective_visibilities.rs:21:9 |
33 | 45 | | |
34 | 46 | LL | struct PrivStruct; |
35 | 47 | | ^^^^^^^^^^^^^^^^^ |
36 | 48 |
|
37 | 49 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
38 | | - --> $DIR/effective_visibilities.rs:24:9 |
| 50 | + --> $DIR/effective_visibilities.rs:25:9 |
39 | 51 | | |
40 | 52 | LL | pub union PubUnion { |
41 | 53 | | ^^^^^^^^^^^^^^^^^^ |
42 | 54 |
|
43 | 55 | error: Direct: pub(self), Reexported: pub(self), Reachable: pub(self), ReachableThroughImplTrait: pub(self) |
44 | | - --> $DIR/effective_visibilities.rs:26:13 |
| 56 | + --> $DIR/effective_visibilities.rs:27:13 |
45 | 57 | | |
46 | 58 | LL | a: u8, |
47 | 59 | | ^^^^^ |
48 | 60 |
|
49 | 61 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
50 | | - --> $DIR/effective_visibilities.rs:28:13 |
| 62 | + --> $DIR/effective_visibilities.rs:29:13 |
51 | 63 | | |
52 | 64 | LL | pub b: u8, |
53 | 65 | | ^^^^^^^^^ |
54 | 66 |
|
55 | 67 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
56 | | - --> $DIR/effective_visibilities.rs:32:9 |
| 68 | + --> $DIR/effective_visibilities.rs:33:9 |
57 | 69 | | |
58 | 70 | LL | pub enum Enum { |
59 | 71 | | ^^^^^^^^^^^^^ |
60 | 72 |
|
61 | 73 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
62 | | - --> $DIR/effective_visibilities.rs:34:13 |
| 74 | + --> $DIR/effective_visibilities.rs:35:13 |
63 | 75 | | |
64 | 76 | LL | A( |
65 | 77 | | ^ |
66 | 78 |
|
67 | 79 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
68 | | - --> $DIR/effective_visibilities.rs:34:13 |
| 80 | + --> $DIR/effective_visibilities.rs:35:13 |
69 | 81 | | |
70 | 82 | LL | A( |
71 | 83 | | ^ |
72 | 84 |
|
73 | 85 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
74 | | - --> $DIR/effective_visibilities.rs:37:17 |
| 86 | + --> $DIR/effective_visibilities.rs:38:17 |
75 | 87 | | |
76 | 88 | LL | PubUnion, |
77 | 89 | | ^^^^^^^^ |
78 | 90 |
|
79 | 91 | error: not in the table |
80 | | - --> $DIR/effective_visibilities.rs:43:5 |
| 92 | + --> $DIR/effective_visibilities.rs:44:5 |
81 | 93 | | |
82 | 94 | LL | macro_rules! none_macro { |
83 | 95 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
84 | 96 |
|
85 | 97 | error: Direct: pub(self), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
86 | | - --> $DIR/effective_visibilities.rs:49:5 |
| 98 | + --> $DIR/effective_visibilities.rs:50:5 |
87 | 99 | | |
88 | 100 | LL | macro_rules! public_macro { |
89 | 101 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
90 | 102 |
|
91 | 103 | error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub, ReachableThroughImplTrait: pub |
92 | | - --> $DIR/effective_visibilities.rs:54:5 |
| 104 | + --> $DIR/effective_visibilities.rs:55:5 |
93 | 105 | | |
94 | 106 | LL | pub struct ReachableStruct { |
95 | 107 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
96 | 108 |
|
97 | 109 | error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub, ReachableThroughImplTrait: pub |
98 | | - --> $DIR/effective_visibilities.rs:56:9 |
| 110 | + --> $DIR/effective_visibilities.rs:57:9 |
99 | 111 | | |
100 | 112 | LL | pub a: u8, |
101 | 113 | | ^^^^^^^^^ |
102 | 114 |
|
103 | 115 | error: Direct: pub, Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
104 | | - --> $DIR/effective_visibilities.rs:61:9 |
| 116 | + --> $DIR/effective_visibilities.rs:62:9 |
105 | 117 | | |
106 | 118 | LL | pub use outer::inner1; |
107 | 119 | | ^^^^^^^^^^^^^ |
108 | 120 |
|
109 | 121 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
110 | | - --> $DIR/effective_visibilities.rs:67:5 |
| 122 | + --> $DIR/effective_visibilities.rs:68:5 |
111 | 123 | | |
112 | 124 | LL | pub type HalfPublicImport = u8; |
113 | 125 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
114 | 126 |
|
115 | 127 | error: Direct: pub(crate), Reexported: pub(crate), Reachable: pub(crate), ReachableThroughImplTrait: pub(crate) |
116 | | - --> $DIR/effective_visibilities.rs:70:5 |
| 128 | + --> $DIR/effective_visibilities.rs:71:5 |
117 | 129 | | |
118 | 130 | LL | pub(crate) const HalfPublicImport: u8 = 0; |
119 | 131 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
120 | 132 |
|
121 | 133 | error: Direct: pub, Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
122 | | - --> $DIR/effective_visibilities.rs:74:9 |
| 134 | + --> $DIR/effective_visibilities.rs:75:9 |
123 | 135 | | |
124 | 136 | LL | pub use half_public_import::HalfPublicImport; |
125 | 137 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
126 | 138 |
|
127 | 139 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
128 | | - --> $DIR/effective_visibilities.rs:14:13 |
| 140 | + --> $DIR/effective_visibilities.rs:15:13 |
129 | 141 | | |
130 | 142 | LL | const A: i32; |
131 | 143 | | ^^^^^^^^^^^^ |
132 | 144 |
|
133 | 145 | error: Direct: pub(crate), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub |
134 | | - --> $DIR/effective_visibilities.rs:16:13 |
| 146 | + --> $DIR/effective_visibilities.rs:17:13 |
135 | 147 | | |
136 | 148 | LL | type B; |
137 | 149 | | ^^^^^^ |
138 | 150 |
|
139 | | -error: aborting due to 23 previous errors |
| 151 | +error: aborting due to 24 previous errors |
140 | 152 |
|
0 commit comments