summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/redundant_pub_crate.stderr
blob: 6fccdaa4e20374d16915519368f6d6ec11f10641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:7:5
   |
LL |     pub(crate) fn g() {} // private due to m1
   |     ----------^^^^^
   |     |
   |     help: consider using: `pub`
   |
   = note: `-D clippy::redundant-pub-crate` implied by `-D warnings`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:12:9
   |
LL |         pub(crate) fn g() {} // private due to m1_1 and m1
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) module inside private module
  --> $DIR/redundant_pub_crate.rs:16:5
   |
LL |     pub(crate) mod m1_2 {
   |     ----------^^^^^^^^^
   |     |
   |     help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:19:9
   |
LL |         pub(crate) fn g() {} // private due to m1_2 and m1
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:25:9
   |
LL |         pub(crate) fn g() {} // private due to m1
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:32:5
   |
LL |     pub(crate) fn g() {} // already crate visible due to m2
   |     ----------^^^^^
   |     |
   |     help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:37:9
   |
LL |         pub(crate) fn g() {} // private due to m2_1
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) module inside private module
  --> $DIR/redundant_pub_crate.rs:41:5
   |
LL |     pub(crate) mod m2_2 {
   |     ----------^^^^^^^^^
   |     |
   |     help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:44:9
   |
LL |         pub(crate) fn g() {} // already crate visible due to m2_2 and m2
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:50:9
   |
LL |         pub(crate) fn g() {} // already crate visible due to m2
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:62:9
   |
LL |         pub(crate) fn g() {} // private due to m3_1
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:69:9
   |
LL |         pub(crate) fn g() {} // already crate visible due to m3_2
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:82:5
   |
LL |     pub(crate) fn g() {} // private: not re-exported by `pub use m4::*`
   |     ----------^^^^^
   |     |
   |     help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:87:9
   |
LL |         pub(crate) fn g() {} // private due to m4_1
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: pub(crate) module inside private module
  --> $DIR/redundant_pub_crate.rs:91:5
   |
LL |     pub(crate) mod m4_2 {
   |     ----------^^^^^^^^^
   |     |
   |     help: consider using: `pub`

error: pub(crate) function inside private module
  --> $DIR/redundant_pub_crate.rs:94:9
   |
LL |         pub(crate) fn g() {} // private due to m4_2
   |         ----------^^^^^
   |         |
   |         help: consider using: `pub`

error: aborting due to 16 previous errors