@@ -156,17 +156,8 @@ LL | impl<T: PrivTr> Pub<T> {}
156156 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157157 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
158158
159- error: private trait `traits::PrivTr` in public interface (error E0445)
160- --> $DIR/private-in-public-warn.rs:66:5
161- |
162- LL | impl<T: PrivTr> PubTr for Pub<T> {}
163- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164- |
165- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
166- = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
167-
168159error: private trait `traits_where::PrivTr` in public interface (error E0445)
169- --> $DIR/private-in-public-warn.rs:75 :5
160+ --> $DIR/private-in-public-warn.rs:74 :5
170161 |
171162LL | pub type Alias<T> where T: PrivTr = T;
172163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -175,7 +166,7 @@ LL | pub type Alias<T> where T: PrivTr = T;
175166 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
176167
177168error: private trait `traits_where::PrivTr` in public interface (error E0445)
178- --> $DIR/private-in-public-warn.rs:79 :5
169+ --> $DIR/private-in-public-warn.rs:78 :5
179170 |
180171LL | pub trait Tr2<T> where T: PrivTr {}
181172 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -184,7 +175,7 @@ LL | pub trait Tr2<T> where T: PrivTr {}
184175 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
185176
186177error: private trait `traits_where::PrivTr` in public interface (error E0445)
187- --> $DIR/private-in-public-warn.rs:83 :9
178+ --> $DIR/private-in-public-warn.rs:82 :9
188179 |
189180LL | fn f<T>(arg: T) where T: PrivTr {}
190181 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -193,25 +184,16 @@ LL | fn f<T>(arg: T) where T: PrivTr {}
193184 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
194185
195186error: private trait `traits_where::PrivTr` in public interface (error E0445)
196- --> $DIR/private-in-public-warn.rs:87 :5
187+ --> $DIR/private-in-public-warn.rs:86 :5
197188 |
198189LL | impl<T> Pub<T> where T: PrivTr {}
199190 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
200191 |
201192 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
202193 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
203194
204- error: private trait `traits_where::PrivTr` in public interface (error E0445)
205- --> $DIR/private-in-public-warn.rs:90:5
206- |
207- LL | impl<T> PubTr for Pub<T> where T: PrivTr {}
208- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
209- |
210- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
211- = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
212-
213195error: private trait `generics::PrivTr<generics::Pub>` in public interface (error E0445)
214- --> $DIR/private-in-public-warn.rs:101 :5
196+ --> $DIR/private-in-public-warn.rs:98 :5
215197 |
216198LL | pub trait Tr1: PrivTr<Pub> {}
217199 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -220,7 +202,7 @@ LL | pub trait Tr1: PrivTr<Pub> {}
220202 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
221203
222204error: private type `generics::Priv` in public interface (error E0446)
223- --> $DIR/private-in-public-warn.rs:104 :5
205+ --> $DIR/private-in-public-warn.rs:101 :5
224206 |
225207LL | pub trait Tr2: PubTr<Priv> {}
226208 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -229,7 +211,7 @@ LL | pub trait Tr2: PubTr<Priv> {}
229211 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
230212
231213error: private type `generics::Priv` in public interface (error E0446)
232- --> $DIR/private-in-public-warn.rs:106 :5
214+ --> $DIR/private-in-public-warn.rs:103 :5
233215 |
234216LL | pub trait Tr3: PubTr<[Priv; 1]> {}
235217 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -238,7 +220,7 @@ LL | pub trait Tr3: PubTr<[Priv; 1]> {}
238220 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
239221
240222error: private type `generics::Priv` in public interface (error E0446)
241- --> $DIR/private-in-public-warn.rs:108 :5
223+ --> $DIR/private-in-public-warn.rs:105 :5
242224 |
243225LL | pub trait Tr4: PubTr<Pub<Priv>> {}
244226 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -247,7 +229,7 @@ LL | pub trait Tr4: PubTr<Pub<Priv>> {}
247229 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
248230
249231error[E0446]: private type `impls::Priv` in public interface
250- --> $DIR/private-in-public-warn.rs:135 :9
232+ --> $DIR/private-in-public-warn.rs:132 :9
251233 |
252234LL | struct Priv;
253235 | ------------ `impls::Priv` declared as private
@@ -256,7 +238,7 @@ LL | type Alias = Priv;
256238 | ^^^^^^^^^^^^^^^^^^ can't leak private type
257239
258240error: private type `aliases_pub::Priv` in public interface (error E0446)
259- --> $DIR/private-in-public-warn.rs:206 :9
241+ --> $DIR/private-in-public-warn.rs:203 :9
260242 |
261243LL | pub fn f(arg: Priv) {}
262244 | ^^^^^^^^^^^^^^^^^^^
@@ -265,7 +247,7 @@ LL | pub fn f(arg: Priv) {}
265247 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
266248
267249error[E0446]: private type `aliases_pub::Priv` in public interface
268- --> $DIR/private-in-public-warn.rs:210 :9
250+ --> $DIR/private-in-public-warn.rs:207 :9
269251 |
270252LL | struct Priv;
271253 | ------------ `aliases_pub::Priv` declared as private
@@ -274,7 +256,7 @@ LL | type Check = Priv;
274256 | ^^^^^^^^^^^^^^^^^^ can't leak private type
275257
276258error[E0446]: private type `aliases_pub::Priv` in public interface
277- --> $DIR/private-in-public-warn.rs:213 :9
259+ --> $DIR/private-in-public-warn.rs:210 :9
278260 |
279261LL | struct Priv;
280262 | ------------ `aliases_pub::Priv` declared as private
@@ -283,7 +265,7 @@ LL | type Check = Priv;
283265 | ^^^^^^^^^^^^^^^^^^ can't leak private type
284266
285267error[E0446]: private type `aliases_pub::Priv` in public interface
286- --> $DIR/private-in-public-warn.rs:216 :9
268+ --> $DIR/private-in-public-warn.rs:213 :9
287269 |
288270LL | struct Priv;
289271 | ------------ `aliases_pub::Priv` declared as private
@@ -292,7 +274,7 @@ LL | type Check = Priv;
292274 | ^^^^^^^^^^^^^^^^^^ can't leak private type
293275
294276error[E0446]: private type `aliases_pub::Priv` in public interface
295- --> $DIR/private-in-public-warn.rs:219 :9
277+ --> $DIR/private-in-public-warn.rs:216 :9
296278 |
297279LL | struct Priv;
298280 | ------------ `aliases_pub::Priv` declared as private
@@ -301,7 +283,7 @@ LL | type Check = Priv;
301283 | ^^^^^^^^^^^^^^^^^^ can't leak private type
302284
303285error: private trait `PrivTr1` in public interface (error E0445)
304- --> $DIR/private-in-public-warn.rs:249 :5
286+ --> $DIR/private-in-public-warn.rs:246 :5
305287 |
306288LL | pub trait Tr1: PrivUseAliasTr {}
307289 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -310,7 +292,7 @@ LL | pub trait Tr1: PrivUseAliasTr {}
310292 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
311293
312294error: private trait `PrivTr1<Priv2>` in public interface (error E0445)
313- --> $DIR/private-in-public-warn.rs:252 :5
295+ --> $DIR/private-in-public-warn.rs:249 :5
314296 |
315297LL | pub trait Tr2: PrivUseAliasTr<PrivAlias> {}
316298 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -319,7 +301,7 @@ LL | pub trait Tr2: PrivUseAliasTr<PrivAlias> {}
319301 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
320302
321303error: private type `Priv2` in public interface (error E0446)
322- --> $DIR/private-in-public-warn.rs:252 :5
304+ --> $DIR/private-in-public-warn.rs:249 :5
323305 |
324306LL | pub trait Tr2: PrivUseAliasTr<PrivAlias> {}
325307 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -341,7 +323,7 @@ LL + pub type Alias<T> = T;
341323 |
342324
343325warning: where clauses are not enforced in type aliases
344- --> $DIR/private-in-public-warn.rs:75 :29
326+ --> $DIR/private-in-public-warn.rs:74 :29
345327 |
346328LL | pub type Alias<T> where T: PrivTr = T;
347329 | ^^^^^^^^^
@@ -352,6 +334,6 @@ LL - pub type Alias<T> where T: PrivTr = T;
352334LL + pub type Alias<T> = T;
353335 |
354336
355- error: aborting due to 36 previous errors; 2 warnings emitted
337+ error: aborting due to 34 previous errors; 2 warnings emitted
356338
357339For more information about this error, try `rustc --explain E0446`.
0 commit comments