diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-10-06 20:47:06 +0200 | 
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-10-08 00:23:28 +0200 | 
| commit | 4107322766523afa7d1968acc0dfee4fd06e8ad8 (patch) | |
| tree | 182720248660e340edcee521af048e9153841dae /compiler/rustc_mir_build/src/errors.rs | |
| parent | 4abbdfa1c9cd3e2f3181608fb60539755f3a8068 (diff) | |
| download | rust-4107322766523afa7d1968acc0dfee4fd06e8ad8.tar.gz rust-4107322766523afa7d1968acc0dfee4fd06e8ad8.zip  | |
Error on resetted binding mode in edition 2024
Diffstat (limited to 'compiler/rustc_mir_build/src/errors.rs')
| -rw-r--r-- | compiler/rustc_mir_build/src/errors.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_mir_build/src/errors.rs b/compiler/rustc_mir_build/src/errors.rs index 411e9420914..7f905d5b90b 100644 --- a/compiler/rustc_mir_build/src/errors.rs +++ b/compiler/rustc_mir_build/src/errors.rs @@ -983,6 +983,8 @@ pub(crate) struct Rust2024IncompatiblePat { pub(crate) struct Rust2024IncompatiblePatSugg { pub(crate) suggestion: Vec<(Span, String)>, + /// Whether the incompatibility is a hard error because a relevant span is in edition 2024. + pub(crate) is_hard_error: bool, } impl Subdiagnostic for Rust2024IncompatiblePatSugg {  | 
