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