1
Fork 0

Mention both release *and* edition breakage for never type lints

This commit is contained in:
Maybe Lapkin 2024-11-13 05:14:26 +01:00
parent db0740446b
commit 46967bd2e9
No known key found for this signature in database
23 changed files with 86 additions and 62 deletions

View file

@ -382,6 +382,12 @@ pub fn lint_level(
FutureIncompatibilityReason::EditionSemanticsChange(edition) => {
format!("this changes meaning in Rust {edition}")
}
FutureIncompatibilityReason::EditionAndFutureReleaseError(edition) => {
format!(
"this was previously accepted by the compiler but is being phased out; \
it will become a hard error in Rust {edition} and in a future release in all editions!"
)
}
FutureIncompatibilityReason::Custom(reason) => reason.to_owned(),
};