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