-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Run compiler callbacks even when there are errors. #31250
Conversation
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #30900) made this pull request unmergeable. Please resolve the merge conflicts. |
let result = f(); | ||
count -= self.err_count(); | ||
let count = self.err_count() - count; |
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.
Nit: can we rename these variables to
let old_count = ...;
let new_errors = ... - old_count;
r=me, needs rebase |
Fixes rust-lang#31207 by removing abort_if_new_errors
📌 Commit c0ac539 has been approved by |
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.
💔 Test failed - auto-mac-64-opt |
📌 Commit 5a35c53 has been approved by |
⌛ Testing commit 5a35c53 with merge 9a183da... |
💔 Test failed - auto-mac-64-opt |
📌 Commit 185a0e5 has been approved by |
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.
This was a regression introduced by rust-lang#31250 where the compiler deferred returning the results of compilation a little too late (after the `Stop` check was looked at). This commit alters the stop point to first try to return an erroneous `result` and only if it was successful return the sentinel `Err(0)`. Closes rust-lang#31576
This was a regression introduced by rust-lang#31250 where the compiler deferred returning the results of compilation a little too late (after the `Stop` check was looked at). This commit alters the stop point to first try to return an erroneous `result` and only if it was successful return the sentinel `Err(0)`. Closes rust-lang#31576
This was a regression introduced by rust-lang#31250 where the compiler deferred returning the results of compilation a little too late (after the `Stop` check was looked at). This commit alters the stop point to first try to return an erroneous `result` and only if it was successful return the sentinel `Err(0)`. Closes rust-lang#31576
rustdoc: Fix testing no_run code blocks This was a regression introduced by #31250 where the compiler deferred returning the results of compilation a little too late (after the `Stop` check was looked at). This commit alters the stop point to first try to return an erroneous `result` and only if it was successful return the sentinel `Err(0)`. Closes #31576
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.