fork/rust

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

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

master
3.8 KiB133 linesraw
1error: pub(crate) function inside private module
2  --> $DIR/redundant_pub_crate.rs:6:5
3   |
4LL |     pub(crate) fn g() {} // private due to m1
5   |     ----------^^^^^
6   |     |
7   |     help: consider using: `pub`
8   |
9   = note: `-D clippy::redundant-pub-crate` implied by `-D warnings`
10   = help: to override `-D warnings` add `#[allow(clippy::redundant_pub_crate)]`
11
12error: pub(crate) function inside private module
13  --> $DIR/redundant_pub_crate.rs:11:9
14   |
15LL |         pub(crate) fn g() {} // private due to m1_1 and m1
16   |         ----------^^^^^
17   |         |
18   |         help: consider using: `pub`
19
20error: pub(crate) module inside private module
21  --> $DIR/redundant_pub_crate.rs:15:5
22   |
23LL |     pub(crate) mod m1_2 {
24   |     ----------^^^^^^^^^
25   |     |
26   |     help: consider using: `pub`
27
28error: pub(crate) function inside private module
29  --> $DIR/redundant_pub_crate.rs:18:9
30   |
31LL |         pub(crate) fn g() {} // private due to m1_2 and m1
32   |         ----------^^^^^
33   |         |
34   |         help: consider using: `pub`
35
36error: pub(crate) function inside private module
37  --> $DIR/redundant_pub_crate.rs:24:9
38   |
39LL |         pub(crate) fn g() {} // private due to m1
40   |         ----------^^^^^
41   |         |
42   |         help: consider using: `pub`
43
44error: pub(crate) function inside private module
45  --> $DIR/redundant_pub_crate.rs:31:5
46   |
47LL |     pub(crate) fn g() {} // already crate visible due to m2
48   |     ----------^^^^^
49   |     |
50   |     help: consider using: `pub`
51
52error: pub(crate) function inside private module
53  --> $DIR/redundant_pub_crate.rs:36:9
54   |
55LL |         pub(crate) fn g() {} // private due to m2_1
56   |         ----------^^^^^
57   |         |
58   |         help: consider using: `pub`
59
60error: pub(crate) module inside private module
61  --> $DIR/redundant_pub_crate.rs:40:5
62   |
63LL |     pub(crate) mod m2_2 {
64   |     ----------^^^^^^^^^
65   |     |
66   |     help: consider using: `pub`
67
68error: pub(crate) function inside private module
69  --> $DIR/redundant_pub_crate.rs:43:9
70   |
71LL |         pub(crate) fn g() {} // already crate visible due to m2_2 and m2
72   |         ----------^^^^^
73   |         |
74   |         help: consider using: `pub`
75
76error: pub(crate) function inside private module
77  --> $DIR/redundant_pub_crate.rs:49:9
78   |
79LL |         pub(crate) fn g() {} // already crate visible due to m2
80   |         ----------^^^^^
81   |         |
82   |         help: consider using: `pub`
83
84error: pub(crate) function inside private module
85  --> $DIR/redundant_pub_crate.rs:61:9
86   |
87LL |         pub(crate) fn g() {} // private due to m3_1
88   |         ----------^^^^^
89   |         |
90   |         help: consider using: `pub`
91
92error: pub(crate) function inside private module
93  --> $DIR/redundant_pub_crate.rs:68:9
94   |
95LL |         pub(crate) fn g() {} // already crate visible due to m3_2
96   |         ----------^^^^^
97   |         |
98   |         help: consider using: `pub`
99
100error: pub(crate) function inside private module
101  --> $DIR/redundant_pub_crate.rs:81:5
102   |
103LL |     pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
104   |     ----------^^^^^
105   |     |
106   |     help: consider using: `pub`
107
108error: pub(crate) function inside private module
109  --> $DIR/redundant_pub_crate.rs:86:9
110   |
111LL |         pub(crate) fn g() {} // private due to m4_1
112   |         ----------^^^^^
113   |         |
114   |         help: consider using: `pub`
115
116error: pub(crate) module inside private module
117  --> $DIR/redundant_pub_crate.rs:90:5
118   |
119LL |     pub(crate) mod m4_2 {
120   |     ----------^^^^^^^^^
121   |     |
122   |     help: consider using: `pub`
123
124error: pub(crate) function inside private module
125  --> $DIR/redundant_pub_crate.rs:93:9
126   |
127LL |         pub(crate) fn g() {} // private due to m4_2
128   |         ----------^^^^^
129   |         |
130   |         help: consider using: `pub`
131
132error: aborting due to 16 previous errors
133