-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Add lint for never type regressions #68350
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
da33dc0
Initial work for linting on bad never fallback
Aaron1011 0c49893
Emit warning
Aaron1011 3a22be9
Improve lint to check substs
Aaron1011 d0dc1e3
Make the error message much better
Aaron1011 ebf1918
Provide a better error when no substs is provided for generic param
Aaron1011 5253bb6
Factor out code into its own module
Aaron1011 087af85
Tweak error message
Aaron1011 932d7c2
Some fixup and cleanup
Aaron1011 10cd2e3
Work on splitting up post_fallback
Aaron1011 a8ce823
More refactoring
Aaron1011 65318da
Add a bunch of comments
Aaron1011 61b879c
Some additional cleanup
Aaron1011 c5691a8
Change warning to error
Aaron1011 1ed39bc
Add some tests
Aaron1011 d4bd422
Fix tidy errors
Aaron1011 f1961b5
Fix failing test
Aaron1011 643a708
Unconditionally enable never-type fallback for Crater
Aaron1011 a81c513
Bail out on inference variables in function arguments
Aaron1011 9eb803a
Run never-compat post_fallback after errors are reported
Aaron1011 78a831f
Bail out if errors have occured
Aaron1011 3aefe61
Never consider built-in constructor fns to be 'questionable'
Aaron1011 409e8d7
Only skip fallback when errors have been reported in the same function
Aaron1011 39af896
Update test output
Aaron1011 c82ea60
Add explicit type annotations for `vec.push(break)` test
Aaron1011 fe77a00
Properly handle missing divering/regular inference variables
Aaron1011 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
Only skip fallback when errors have been reported in the same function
- Loading branch information
commit 409e8d71a9a12225f8fee6a80b0d795c34e3d2e3
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*fallback