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:
parent
724b885b4e
commit
bdc6c4d07b
15 changed files with 224 additions and 196 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue