diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-01-30 17:28:41 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2019-02-01 09:43:57 -0500 |
| commit | 541d31531322bd1d5f2bf7bb8b9cf4c79d85f01d (patch) | |
| tree | 6c5b5173cc754422ef984e4223370362b52364eb /src/test | |
| parent | bfcd14dd2b6476980df2a18137d09faf2b796919 (diff) | |
| download | rust-541d31531322bd1d5f2bf7bb8b9cf4c79d85f01d.tar.gz rust-541d31531322bd1d5f2bf7bb8b9cf4c79d85f01d.zip | |
Update tests for future-compat warning removal
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/privacy/pub-priv-dep/pub-priv1.rs | 3 | ||||
| -rw-r--r-- | src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr | 12 |
2 files changed, 2 insertions, 13 deletions
diff --git a/src/test/ui/privacy/pub-priv-dep/pub-priv1.rs b/src/test/ui/privacy/pub-priv-dep/pub-priv1.rs index ca77378d361..9ebc96017fe 100644 --- a/src/test/ui/privacy/pub-priv-dep/pub-priv1.rs +++ b/src/test/ui/privacy/pub-priv-dep/pub-priv1.rs @@ -20,7 +20,6 @@ struct PrivateType { pub struct PublicType { pub field: OtherType, //~^ ERROR type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface - //~| WARNING this was previously accepted priv_field: OtherType, // Private field - this is fine pub other_field: PubType // Type from public dependency - this is fine } @@ -28,7 +27,6 @@ pub struct PublicType { impl PublicType { pub fn pub_fn(param: OtherType) {} //~^ ERROR type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface - //~| WARNING this was previously accepted fn priv_fn(param: OtherType) {} } @@ -37,7 +35,6 @@ pub trait MyPubTrait { type Foo: OtherTrait; } //~^^^ ERROR trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface -//~| WARNING this was previously accepted pub struct AllowedPrivType { #[allow(exported_private_dependencies)] diff --git a/src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr b/src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr index 7c701035d28..b31efdbd781 100644 --- a/src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr +++ b/src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr @@ -9,28 +9,20 @@ note: lint level defined here | LL | #![deny(exported_private_dependencies)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663> error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface - --> $DIR/pub-priv1.rs:29:5 + --> $DIR/pub-priv1.rs:28:5 | LL | pub fn pub_fn(param: OtherType) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663> error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface - --> $DIR/pub-priv1.rs:36:1 + --> $DIR/pub-priv1.rs:34:1 | LL | / pub trait MyPubTrait { LL | | type Foo: OtherTrait; LL | | } | |_^ - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663> error: aborting due to 3 previous errors |
