about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMaybe Lapkin <waffle.lapkin@gmail.com>2024-11-14 02:46:47 +0100
committerMaybe Lapkin <waffle.lapkin@gmail.com>2024-11-14 06:01:14 +0100
commit673bb5e3ffc4f2f58328aea87f3cf70c713cbaa7 (patch)
tree659b249cd868d480fc205fba312812c59de84949 /compiler/rustc_middle/src
parent46967bd2e99b8387ccf066c8b9e6323d6dfaaefe (diff)
downloadrust-673bb5e3ffc4f2f58328aea87f3cf70c713cbaa7.tar.gz
rust-673bb5e3ffc4f2f58328aea87f3cf70c713cbaa7.zip
Mark `never_type_fallback_flowing_into_unsafe` as a semantic change
...rather than a future error
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/lint.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/lint.rs b/compiler/rustc_middle/src/lint.rs
index 1bcdbe33286..92ba6ceee93 100644
--- a/compiler/rustc_middle/src/lint.rs
+++ b/compiler/rustc_middle/src/lint.rs
@@ -388,6 +388,11 @@ pub fn lint_level(
                          it will become a hard error in Rust {edition} and in a future release in all editions!"
                     )
                 }
+                FutureIncompatibilityReason::EditionAndFutureReleaseSemanticsChange(edition) => {
+                    format!(
+                        "this changes meaning in Rust {edition} and in a future release in all editions!"
+                    )
+                }
                 FutureIncompatibilityReason::Custom(reason) => reason.to_owned(),
             };