mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Bump future release warning mode
This commit is contained in:
parent
63b34cf480
commit
e6ca8e1d18
@ -50,7 +50,7 @@ declare_lint! {
|
|||||||
Warn,
|
Warn,
|
||||||
"`Deref` implementation usage with a supertrait trait object for output might be shadowed in the future",
|
"`Deref` implementation usage with a supertrait trait object for output might be shadowed in the future",
|
||||||
@future_incompatible = FutureIncompatibleInfo {
|
@future_incompatible = FutureIncompatibleInfo {
|
||||||
reason: FutureIncompatibilityReason::FutureReleaseErrorDontReportInDeps,
|
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange,
|
||||||
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>",
|
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ trait Foo<'a>: Bar<'a> {}
|
|||||||
|
|
||||||
impl<'a> Deref for dyn Foo<'a> {
|
impl<'a> Deref for dyn Foo<'a> {
|
||||||
//~^ ERROR dyn Foo<'_>` implements `Deref` with supertrait `Bar<'_>` as target
|
//~^ ERROR dyn Foo<'_>` implements `Deref` with supertrait `Bar<'_>` as target
|
||||||
//~| WARN this was previously accepted by the compiler
|
//~| WARN this will change its meaning in a future release!
|
||||||
type Target = dyn Bar<'a>;
|
type Target = dyn Bar<'a>;
|
||||||
|
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target {
|
||||||
|
@ -7,7 +7,7 @@ LL | impl<'a> Deref for dyn Foo<'a> {
|
|||||||
LL | type Target = dyn Bar<'a>;
|
LL | type Target = dyn Bar<'a>;
|
||||||
| -------------------------- target type is set here
|
| -------------------------- target type is set here
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= warning: this will change its meaning in a future release!
|
||||||
= note: for more information, see issue #89460 <https://github.com/rust-lang/rust/issues/89460>
|
= note: for more information, see issue #89460 <https://github.com/rust-lang/rust/issues/89460>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/migrate-lint-deny-regions.rs:1:9
|
--> $DIR/migrate-lint-deny-regions.rs:1:9
|
||||||
|
@ -8,7 +8,7 @@ trait B: A {}
|
|||||||
|
|
||||||
impl<'a> Deref for dyn 'a + B {
|
impl<'a> Deref for dyn 'a + B {
|
||||||
//~^ ERROR `dyn B` implements `Deref` with supertrait `A` as target
|
//~^ ERROR `dyn B` implements `Deref` with supertrait `A` as target
|
||||||
//~| WARN this was previously accepted by the compiler but is being phased out;
|
//~| WARN this will change its meaning in a future release!
|
||||||
|
|
||||||
type Target = dyn A;
|
type Target = dyn A;
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target {
|
||||||
|
@ -7,7 +7,7 @@ LL | impl<'a> Deref for dyn 'a + B {
|
|||||||
LL | type Target = dyn A;
|
LL | type Target = dyn A;
|
||||||
| -------------------- target type is set here
|
| -------------------- target type is set here
|
||||||
|
|
|
|
||||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
= warning: this will change its meaning in a future release!
|
||||||
= note: for more information, see issue #89460 <https://github.com/rust-lang/rust/issues/89460>
|
= note: for more information, see issue #89460 <https://github.com/rust-lang/rust/issues/89460>
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/migrate-lint-deny.rs:1:9
|
--> $DIR/migrate-lint-deny.rs:1:9
|
||||||
|
Loading…
Reference in New Issue
Block a user