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