Mention both release *and* edition breakage for never type lints
This commit is contained in:
parent
db0740446b
commit
46967bd2e9
23 changed files with 86 additions and 62 deletions
|
@ -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(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue