diff options
| author | Waffle Lapkin <waffle.lapkin@gmail.com> | 2024-05-18 00:08:52 +0200 |
|---|---|---|
| committer | Waffle Lapkin <waffle.lapkin@gmail.com> | 2024-05-18 00:08:52 +0200 |
| commit | a02db8660c3e7a61d31eee7f9c4a42f3814bfa0f (patch) | |
| tree | 9792c8b246fee0975bf24904ed0b348bbf54787f | |
| parent | 83acddc766a3659a17b414bbb76d5287d5fb739d (diff) | |
| download | rust-a02db8660c3e7a61d31eee7f9c4a42f3814bfa0f.tar.gz rust-a02db8660c3e7a61d31eee7f9c4a42f3814bfa0f.zip | |
Make `NEVER_TYPE_FALLBACK_FLOWING_INTO_UNSAFE` into an FCW and report it ext macros
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index b195db9a5f5..3b8bec887ea 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -4320,7 +4320,12 @@ declare_lint! { /// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html pub NEVER_TYPE_FALLBACK_FLOWING_INTO_UNSAFE, Warn, - "never type fallback affecting unsafe function calls" + "never type fallback affecting unsafe function calls", + @future_incompatible = FutureIncompatibleInfo { + reason: FutureIncompatibilityReason::FutureReleaseSemanticsChange, + reference: "issue #123748 <https://github.com/rust-lang/rust/issues/123748>", + }; + report_in_external_macro } declare_lint! { |
