-
Notifications
You must be signed in to change notification settings - Fork 13.4k
De-abuse TyKind::Error in exhaustiveness checking #71930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bors
merged 18 commits into
rust-lang:master
from
Nadrieril:exhaustiveness-remove-tyerr
May 21, 2020
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e65d49d
Fix incorrect ordering
Nadrieril 4a1772e
Factor the code that generates TyErrs
Nadrieril a5294b6
We already handle arrays of unknown length correctly
Nadrieril 160eebe
Only need TyErr for uninhabited types
Nadrieril 76dea86
Factor out a struct that holds subfields of a pattern
Nadrieril 3551f1a
Use Fields as output to specialize_one_pattern
Nadrieril c3d3727
Clarify specialize_one_pattern
Nadrieril 70b3872
Make all field-handling go through Fields
Nadrieril 59fa40a
Filter out fields that should not be seen
Nadrieril 8f08b16
Small allocation improvement
Nadrieril e5a2cd5
We don't use tyerr anymore
Nadrieril 079400c
Fix bug just discovered
Nadrieril 4f7a378
typo
Nadrieril aff073e
Cache len in Fields
Nadrieril c6f0947
Improve comments
Nadrieril 4c6510b
Typo
Nadrieril 159f48c
Don't mention function pointers
Nadrieril d7e1d5f
Make caveat more precise
Nadrieril File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.