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 @@ "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 ", + reference: "issue #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 + = note: for more information, see issue #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 + = note: for more information, see issue #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 + = note: for more information, see issue #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 + = note: for more information, see issue #127323 = note: `#[warn(ptr_cast_add_auto_to_object)]` on by default