diff options
| author | bors <bors@rust-lang.org> | 2024-09-14 07:04:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-14 07:04:57 +0000 |
| commit | f9567d0f2bc8f6f7f45c42d432a5dbbd161a6104 (patch) | |
| tree | f9fdc646af42889ab9d89f13694e1a6d96a21cdf /compiler/rustc_mir_build/src/errors.rs | |
| parent | 4a47e8e449da0d4b8252483ecb831c842ff59aa2 (diff) | |
| parent | 1f696384005c27c49ee0e31b1b9031d61b89be6b (diff) | |
| download | rust-f9567d0f2bc8f6f7f45c42d432a5dbbd161a6104.tar.gz rust-f9567d0f2bc8f6f7f45c42d432a5dbbd161a6104.zip | |
Auto merge of #128991 - Nadrieril:rustfix-unreachable-pattern, r=compiler-errors
Add a machine-applicable suggestion to "unreachable pattern"
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 7f9eefd1d52..411e9420914 100644 --- a/compiler/rustc_mir_build/src/errors.rs +++ b/compiler/rustc_mir_build/src/errors.rs @@ -598,6 +598,8 @@ pub(crate) struct UnreachablePattern<'tcx> { #[note(mir_build_unreachable_covered_by_many)] pub(crate) covered_by_many: Option<MultiSpan>, pub(crate) covered_by_many_n_more_count: usize, + #[suggestion(code = "", applicability = "machine-applicable")] + pub(crate) suggest_remove: Option<Span>, } #[derive(Diagnostic)] |
