forked from rust-lang/rust-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version of rust-lang/rust#120027
- Loading branch information
Showing
9 changed files
with
4,396 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "rustc_pattern_analysis" | ||
version = "0.0.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
derivative = "2.2.0" | ||
rustc_apfloat = "0.2.0" | ||
rustc_index = { path = "../rustc_index", default-features = false } | ||
smallvec = { version = "1.8.1", features = ["union"] } | ||
tracing = "0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pattern_analysis_non_exhaustive_omitted_pattern = some variants are not matched explicitly | ||
.help = ensure that all variants are matched explicitly by adding the suggested match arms | ||
.note = the matched value is of type `{$scrut_ty}` and the `non_exhaustive_omitted_patterns` attribute was found | ||
pattern_analysis_non_exhaustive_omitted_pattern_lint_on_arm = the lint level must be set on the whole match | ||
.help = it no longer has any effect to set the lint level on an individual match arm | ||
.label = remove this attribute | ||
.suggestion = set the lint level on the whole match | ||
pattern_analysis_overlapping_range_endpoints = multiple patterns overlap on their endpoints | ||
.label = ... with this range | ||
.note = you likely meant to write mutually exclusive ranges | ||
pattern_analysis_uncovered = {$count -> | ||
[1] pattern `{$witness_1}` | ||
[2] patterns `{$witness_1}` and `{$witness_2}` | ||
[3] patterns `{$witness_1}`, `{$witness_2}` and `{$witness_3}` | ||
*[other] patterns `{$witness_1}`, `{$witness_2}`, `{$witness_3}` and {$remainder} more | ||
} not covered |
Oops, something went wrong.