diff options
| author | Maybe Lapkin <waffle.lapkin@gmail.com> | 2024-07-04 17:52:01 +0200 |
|---|---|---|
| committer | Maybe Lapkin <waffle.lapkin@gmail.com> | 2024-07-04 17:57:31 +0200 |
| commit | 9ef533e8de83aba38a460eae4eec41859f188bf1 (patch) | |
| tree | c0f700fb565b8694eaaf95b9b89d0f32035884f5 | |
| parent | 52ba120700daaeca7d26574f200dcbb527f739de (diff) | |
| download | rust-9ef533e8de83aba38a460eae4eec41859f188bf1.tar.gz rust-9ef533e8de83aba38a460eae4eec41859f188bf1.zip | |
Fill in tracking issue
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 3 | ||||
| -rw-r--r-- | tests/ui/cast/ptr-to-trait-obj-add-auto.stderr | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 6af6f7c473e..baf2000ec45 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -4986,8 +4986,7 @@ declare_lint! { "detects `as` casts from pointers to `dyn Trait` to pointers to `dyn Trait + Auto`", @future_incompatible = FutureIncompatibleInfo { reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps, - // FIXME: actually write an issue with an explanation - reference: "issue #125289 <https://github.com/rust-lang/rust/issues/125289>", + reference: "issue #127323 <https://github.com/rust-lang/rust/issues/127323>", }; } diff --git a/tests/ui/cast/ptr-to-trait-obj-add-auto.stderr b/tests/ui/cast/ptr-to-trait-obj-add-auto.stderr index beb71eb100b..175c5c98145 100644 --- a/tests/ui/cast/ptr-to-trait-obj-add-auto.stderr +++ b/tests/ui/cast/ptr-to-trait-obj-add-auto.stderr @@ -5,7 +5,7 @@ LL | x as _ | ^^^^^^ | = 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 #125289 <https://github.com/rust-lang/rust/issues/125289> + = note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323> = note: `#[warn(ptr_cast_add_auto_to_object)]` on by default warning: adding auto traits `Sync`, `Send`, and `Unpin` to a trait object in a pointer cast may cause UB later on @@ -15,7 +15,7 @@ LL | x as _ | ^^^^^^ | = 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 #125289 <https://github.com/rust-lang/rust/issues/125289> + = note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323> warning: 2 warnings emitted @@ -27,7 +27,7 @@ LL | x as _ | ^^^^^^ | = 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 #125289 <https://github.com/rust-lang/rust/issues/125289> + = note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323> = note: `#[warn(ptr_cast_add_auto_to_object)]` on by default Future breakage diagnostic: @@ -38,6 +38,6 @@ LL | x as _ | ^^^^^^ | = 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 #125289 <https://github.com/rust-lang/rust/issues/125289> + = note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323> = note: `#[warn(ptr_cast_add_auto_to_object)]` on by default |
