diff options
| author | dianne <diannes.gm@gmail.com> | 2025-02-03 01:50:14 -0800 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2025-02-03 01:50:14 -0800 |
| commit | bdc6c4d07b5ccb91df396e152deafc3a66b539ab (patch) | |
| tree | 3fa7bb3621759b756a8b57309db7d6116347cc6d /compiler/rustc_mir_build/src/errors.rs | |
| parent | 724b885b4e486a355d176dc78098e131f9c1b2ef (diff) | |
| download | rust-bdc6c4d07b5ccb91df396e152deafc3a66b539ab.tar.gz rust-bdc6c4d07b5ccb91df396e152deafc3a66b539ab.zip | |
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.
Diffstat (limited to 'compiler/rustc_mir_build/src/errors.rs')
| -rw-r--r-- | compiler/rustc_mir_build/src/errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_mir_build/src/errors.rs b/compiler/rustc_mir_build/src/errors.rs index e8ba4a4b415..0289a6c4073 100644 --- a/compiler/rustc_mir_build/src/errors.rs +++ b/compiler/rustc_mir_build/src/errors.rs @@ -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 { |
