Skip to content

Commit 541d315

Browse files
committed
Update tests for future-compat warning removal
1 parent bfcd14d commit 541d315

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/test/ui/privacy/pub-priv-dep/pub-priv1.rs

-3
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ struct PrivateType {
2020
pub struct PublicType {
2121
pub field: OtherType,
2222
//~^ ERROR type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
23-
//~| WARNING this was previously accepted
2423
priv_field: OtherType, // Private field - this is fine
2524
pub other_field: PubType // Type from public dependency - this is fine
2625
}
2726

2827
impl PublicType {
2928
pub fn pub_fn(param: OtherType) {}
3029
//~^ ERROR type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
31-
//~| WARNING this was previously accepted
3230

3331
fn priv_fn(param: OtherType) {}
3432
}
@@ -37,7 +35,6 @@ pub trait MyPubTrait {
3735
type Foo: OtherTrait;
3836
}
3937
//~^^^ ERROR trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
40-
//~| WARNING this was previously accepted
4138

4239
pub struct AllowedPrivType {
4340
#[allow(exported_private_dependencies)]

src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr

+2-10
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,20 @@ note: lint level defined here
99
|
1010
LL | #![deny(exported_private_dependencies)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13-
= note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663>
1412

1513
error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
16-
--> $DIR/pub-priv1.rs:29:5
14+
--> $DIR/pub-priv1.rs:28:5
1715
|
1816
LL | pub fn pub_fn(param: OtherType) {}
1917
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20-
|
21-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22-
= note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663>
2318

2419
error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
25-
--> $DIR/pub-priv1.rs:36:1
20+
--> $DIR/pub-priv1.rs:34:1
2621
|
2722
LL | / pub trait MyPubTrait {
2823
LL | | type Foo: OtherTrait;
2924
LL | | }
3025
| |_^
31-
|
32-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33-
= note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663>
3426

3527
error: aborting due to 3 previous errors
3628

0 commit comments

Comments
 (0)