-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Overhaul const-checking diagnostics #77354
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 23 commits into
rust-lang:master
from
ecstatic-morse:const-checking-moar-errors
Oct 1, 2020
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4d343a5
Useful derives on `mir::LocalKind`
ecstatic-morse 325b7d4
Continue const-checking after errors when easy
ecstatic-morse 25c7753
Continue after `impl Trait` in `const fn`
ecstatic-morse c38aca0
`delay_span_bug` if const-checking an `async` function
ecstatic-morse 20e07e7
Forbid generator-specific MIR in all const-contexts
ecstatic-morse 782a595
Return a `DiagnosticBuilder` from structured errors
ecstatic-morse ce50939
Fix "unstable in stable" error
ecstatic-morse de35c42
Remove `ops::non_const`
ecstatic-morse b518ccb
Give `MutDeref` a real error message
ecstatic-morse a23297f
Bless mut tests
ecstatic-morse 5b31455
Priority levels
ecstatic-morse b400871
Don't emit duplicate errors for the return place
ecstatic-morse 51fbd55
Bless tests
ecstatic-morse 37f37dc
Emit multiple function pointer errors from const-checker
ecstatic-morse 879d379
Bless output
ecstatic-morse e02ea83
Don't stop const-checking after erroneous trait bound
ecstatic-morse 4bbc79c
Bless tests
ecstatic-morse 287993c
Remove machinery for halting error output
ecstatic-morse bed7b29
Update `compile-fail` test
ecstatic-morse 1513904
Remove default `build_error` impl
ecstatic-morse 7c6d685
Rewrite E0019 example
ecstatic-morse 0c26144
Better span for attribute suggestions
ecstatic-morse 1301f43
Remove E0019, use E0015 for inline assembly in a const
ecstatic-morse 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.