@@ -13,102 +13,184 @@ LL | #![deny(exported_private_dependencies)]
13
13
error: type `OtherType` from private dependency 'priv_dep' in public interface
14
14
--> $DIR/pub-priv1.rs:36:5
15
15
|
16
+ LL | pub OtherType,
17
+ | ^^^^^^^^^^^^^
18
+
19
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
20
+ --> $DIR/pub-priv1.rs:44:21
21
+ |
22
+ LL | ActualOtherType(OtherType, PubType),
23
+ | ^^^^^^^^^
24
+
25
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
26
+ --> $DIR/pub-priv1.rs:47:9
27
+ |
28
+ LL | field: OtherType,
29
+ | ^^^^^^^^^^^^^^^^
30
+
31
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
32
+ --> $DIR/pub-priv1.rs:54:1
33
+ |
34
+ LL | pub type ReexportedPublicGeneric = PublicGenericType<OtherType, ()>;
35
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
+
37
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
38
+ --> $DIR/pub-priv1.rs:56:1
39
+ |
40
+ LL | pub type ReexportedPrivateGeneric = PublicGenericType<(), OtherType>;
41
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
+
43
+ error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
44
+ --> $DIR/pub-priv1.rs:59:1
45
+ |
46
+ LL | pub struct PublicGenericBoundedType<T: OtherTrait>(T);
47
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
+
49
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
50
+ --> $DIR/pub-priv1.rs:63:5
51
+ |
16
52
LL | pub fn pub_fn_param(param: OtherType) {}
17
53
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
54
19
55
error: type `OtherType` from private dependency 'priv_dep' in public interface
20
- --> $DIR/pub-priv1.rs:39 :5
56
+ --> $DIR/pub-priv1.rs:66 :5
21
57
|
22
58
LL | pub fn pub_fn_return() -> OtherType { OtherType }
23
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
60
25
61
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
26
- --> $DIR/pub-priv1.rs:46 :5
62
+ --> $DIR/pub-priv1.rs:73 :5
27
63
|
28
64
LL | type Foo: OtherTrait;
29
65
| ^^^^^^^^^^^^^^^^^^^^
30
66
31
67
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
32
- --> $DIR/pub-priv1.rs:49 :22
68
+ --> $DIR/pub-priv1.rs:76 :22
33
69
|
34
70
LL | fn required() -> impl OtherTrait;
35
71
| ^^^^^^^^^^^^^^^
36
72
37
73
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
38
- --> $DIR/pub-priv1.rs:52 :22
74
+ --> $DIR/pub-priv1.rs:79 :22
39
75
|
40
76
LL | fn provided() -> impl OtherTrait { OtherType }
41
77
| ^^^^^^^^^^^^^^^
42
78
43
79
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
44
- --> $DIR/pub-priv1.rs:52 :22
80
+ --> $DIR/pub-priv1.rs:79 :22
45
81
|
46
82
LL | fn provided() -> impl OtherTrait { OtherType }
47
83
| ^^^^^^^^^^^^^^^
48
84
|
49
85
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
50
86
51
87
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
52
- --> $DIR/pub-priv1.rs:57 :1
88
+ --> $DIR/pub-priv1.rs:84 :1
53
89
|
54
90
LL | pub trait WithSuperTrait: OtherTrait {}
55
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
92
57
93
error: type `OtherType` from private dependency 'priv_dep' in public interface
58
- --> $DIR/pub-priv1.rs:66 :5
94
+ --> $DIR/pub-priv1.rs:93 :5
59
95
|
60
96
LL | type X = OtherType;
61
97
| ^^^^^^
62
98
63
99
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
64
- --> $DIR/pub-priv1.rs:70 :1
100
+ --> $DIR/pub-priv1.rs:97 :1
65
101
|
66
102
LL | pub fn in_bounds<T: OtherTrait>(x: T) { unimplemented!() }
67
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
104
69
105
error: type `OtherType` from private dependency 'priv_dep' in public interface
70
- --> $DIR/pub-priv1.rs:73 :1
106
+ --> $DIR/pub-priv1.rs:100 :1
71
107
|
72
108
LL | pub fn private_in_generic() -> std::num::Saturating<OtherType> { unimplemented!() }
73
109
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
110
75
111
error: type `OtherType` from private dependency 'priv_dep' in public interface
76
- --> $DIR/pub-priv1.rs:76 :1
112
+ --> $DIR/pub-priv1.rs:103 :1
77
113
|
78
114
LL | pub static STATIC: OtherType = OtherType;
79
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
116
81
117
error: type `OtherType` from private dependency 'priv_dep' in public interface
82
- --> $DIR/pub-priv1.rs:79 :1
118
+ --> $DIR/pub-priv1.rs:106 :1
83
119
|
84
120
LL | pub const CONST: OtherType = OtherType;
85
121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
86
122
87
123
error: type `OtherType` from private dependency 'priv_dep' in public interface
88
- --> $DIR/pub-priv1.rs:82 :1
124
+ --> $DIR/pub-priv1.rs:109 :1
89
125
|
90
126
LL | pub type Alias = OtherType;
91
127
| ^^^^^^^^^^^^^^
92
128
129
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
130
+ --> $DIR/pub-priv1.rs:112:1
131
+ |
132
+ LL | pub type AliasOfAlias = priv_dep::PubPub;
133
+ | ^^^^^^^^^^^^^^^^^^^^^
134
+
93
135
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
94
- --> $DIR/pub-priv1.rs:87 :1
136
+ --> $DIR/pub-priv1.rs:117 :1
95
137
|
96
138
LL | impl OtherTrait for PublicWithPrivateImpl {}
97
139
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
140
99
141
error: type `OtherType` from private dependency 'priv_dep' in public interface
100
- --> $DIR/pub-priv1.rs:92 :1
142
+ --> $DIR/pub-priv1.rs:122 :1
101
143
|
102
144
LL | impl PubTraitOnPrivate for OtherType {}
103
145
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
146
105
147
error: type `OtherType` from private dependency 'priv_dep' in public interface
106
- --> $DIR/pub-priv1.rs:92 :1
148
+ --> $DIR/pub-priv1.rs:122 :1
107
149
|
108
150
LL | impl PubTraitOnPrivate for OtherType {}
109
151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
152
|
111
153
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
112
154
113
- error: aborting due to 17 previous errors
155
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
156
+ --> $DIR/pub-priv1.rs:128:1
157
+ |
158
+ LL | impl From<OtherType> for PublicWithStdImpl {
159
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160
+
161
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
162
+ --> $DIR/pub-priv1.rs:130:5
163
+ |
164
+ LL | fn from(val: OtherType) -> Self { Self }
165
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
166
+
167
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
168
+ --> $DIR/pub-priv1.rs:134:1
169
+ |
170
+ LL | impl From<PublicWithStdImpl> for OtherType {
171
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172
+
173
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
174
+ --> $DIR/pub-priv1.rs:134:1
175
+ |
176
+ LL | impl From<PublicWithStdImpl> for OtherType {
177
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
+ |
179
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
180
+
181
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
182
+ --> $DIR/pub-priv1.rs:137:5
183
+ |
184
+ LL | fn from(val: PublicWithStdImpl) -> Self { Self }
185
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
186
+
187
+ error: type `OtherType` from private dependency 'priv_dep' in public interface
188
+ --> $DIR/pub-priv1.rs:137:5
189
+ |
190
+ LL | fn from(val: PublicWithStdImpl) -> Self { Self }
191
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192
+ |
193
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
194
+
195
+ error: aborting due to 30 previous errors
114
196
0 commit comments