Skip to content

Commit e6ca8e1

Browse files
Bump future release warning mode
1 parent 63b34cf commit e6ca8e1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/rustc_lint/src/deref_into_dyn_supertrait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare_lint! {
5050
Warn,
5151
"`Deref` implementation usage with a supertrait trait object for output might be shadowed in the future",
5252
@future_incompatible = FutureIncompatibleInfo {
53-
reason: FutureIncompatibilityReason::FutureReleaseErrorDontReportInDeps,
53+
reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange,
5454
reference: "issue #89460 <https://github.com/rust-lang/rust/issues/89460>",
5555
};
5656
}

tests/ui/traits/trait-upcasting/migrate-lint-deny-regions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trait Foo<'a>: Bar<'a> {}
77

88
impl<'a> Deref for dyn Foo<'a> {
99
//~^ ERROR dyn Foo<'_>` implements `Deref` with supertrait `Bar<'_>` as target
10-
//~| WARN this was previously accepted by the compiler
10+
//~| WARN this will change its meaning in a future release!
1111
type Target = dyn Bar<'a>;
1212

1313
fn deref(&self) -> &Self::Target {

tests/ui/traits/trait-upcasting/migrate-lint-deny-regions.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<'a> Deref for dyn Foo<'a> {
77
LL | type Target = dyn Bar<'a>;
88
| -------------------------- target type is set here
99
|
10-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
10+
= warning: this will change its meaning in a future release!
1111
= note: for more information, see issue #89460 <https://github.com/rust-lang/rust/issues/89460>
1212
note: the lint level is defined here
1313
--> $DIR/migrate-lint-deny-regions.rs:1:9

tests/ui/traits/trait-upcasting/migrate-lint-deny.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ trait B: A {}
88

99
impl<'a> Deref for dyn 'a + B {
1010
//~^ ERROR `dyn B` implements `Deref` with supertrait `A` as target
11-
//~| WARN this was previously accepted by the compiler but is being phased out;
11+
//~| WARN this will change its meaning in a future release!
1212

1313
type Target = dyn A;
1414
fn deref(&self) -> &Self::Target {

tests/ui/traits/trait-upcasting/migrate-lint-deny.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<'a> Deref for dyn 'a + B {
77
LL | type Target = dyn A;
88
| -------------------- target type is set here
99
|
10-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
10+
= warning: this will change its meaning in a future release!
1111
= note: for more information, see issue #89460 <https://github.com/rust-lang/rust/issues/89460>
1212
note: the lint level is defined here
1313
--> $DIR/migrate-lint-deny.rs:1:9

0 commit comments

Comments
 (0)