-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
323 additions
and
306 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
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
10 changes: 5 additions & 5 deletions
10
tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.rs
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
fn main() { | ||
match 0usize { | ||
//~^ ERROR non-exhaustive patterns: `_` not covered | ||
//~| NOTE pattern `_` not covered | ||
//~^ ERROR non-exhaustive patterns: `usize::MAX..` not covered | ||
//~| NOTE pattern `usize::MAX..` not covered | ||
//~| NOTE the matched value is of type `usize` | ||
//~| NOTE `usize` does not have a fixed maximum value | ||
0..=usize::MAX => {} | ||
} | ||
|
||
match 0isize { | ||
//~^ ERROR non-exhaustive patterns: `_` not covered | ||
//~| NOTE pattern `_` not covered | ||
//~^ ERROR non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered | ||
//~| NOTE patterns `..isize::MIN` and `isize::MAX..` not covered | ||
//~| NOTE the matched value is of type `isize` | ||
//~| NOTE `isize` does not have a fixed maximum value | ||
//~| NOTE `isize` does not have fixed minimum and maximum values | ||
isize::MIN..=isize::MAX => {} | ||
} | ||
} |
18 changes: 9 additions & 9 deletions
18
tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr
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
2 changes: 1 addition & 1 deletion
2
tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.allow.stderr
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
Oops, something went wrong.