fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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