1
Fork 0

reword pattern migration diagnostic to make sense in all editions

This aligns the main error message a bit more with the phrasing in the
Edition Guide and provides a bit more information on the labels to
(hopefully!) aid in understanding.
This commit is contained in:
dianne 2025-02-03 01:50:14 -08:00
parent 724b885b4e
commit bdc6c4d07b
15 changed files with 224 additions and 196 deletions

View file

@ -1100,6 +1100,9 @@ pub(crate) enum MiscPatternSuggestion {
pub(crate) struct Rust2024IncompatiblePat {
#[subdiagnostic]
pub(crate) sugg: Rust2024IncompatiblePatSugg,
pub(crate) bad_modifiers: bool,
pub(crate) bad_ref_pats: bool,
pub(crate) is_hard_error: bool,
}
pub(crate) struct Rust2024IncompatiblePatSugg {