Skip to content
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

Merged
merged 4 commits into from
Feb 2, 2016

Conversation

nrc
Copy link
Member

@nrc nrc commented Jan 28, 2016

With this PR we can save-analysis on code with errors, essential foundation work for IDE support.

@rust-highfive
Copy link
Collaborator

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@nrc
Copy link
Member Author

nrc commented Jan 28, 2016

r? @nikomatsakis

@rust-highfive rust-highfive assigned nikomatsakis and unassigned Aatch Jan 28, 2016
@bors
Copy link
Contributor

bors commented Jan 29, 2016

☔ 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;
Copy link
Contributor

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;

@nikomatsakis
Copy link
Contributor

r=me, needs rebase

@nrc
Copy link
Member Author

nrc commented Jan 31, 2016

@bors: r=@nikomatsakis

@bors
Copy link
Contributor

bors commented Jan 31, 2016

📌 Commit c0ac539 has been approved by @nikomatsakis

bors added a commit that referenced this pull request Jan 31, 2016
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.
@bors
Copy link
Contributor

bors commented Jan 31, 2016

⌛ Testing commit c0ac539 with merge 2a39e73...

@bors
Copy link
Contributor

bors commented Jan 31, 2016

💔 Test failed - auto-mac-64-opt

@nrc
Copy link
Member Author

nrc commented Feb 1, 2016

@bors: r=@nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 1, 2016

📌 Commit 5a35c53 has been approved by @nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 1, 2016

⌛ Testing commit 5a35c53 with merge 9a183da...

@bors
Copy link
Contributor

bors commented Feb 1, 2016

💔 Test failed - auto-mac-64-opt

@nrc
Copy link
Member Author

nrc commented Feb 1, 2016

@bors: r=@nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 1, 2016

📌 Commit 185a0e5 has been approved by @nikomatsakis

bors added a commit that referenced this pull request Feb 1, 2016
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.
@bors
Copy link
Contributor

bors commented Feb 1, 2016

⌛ Testing commit 185a0e5 with merge b94cd7a...

@bors bors merged commit 185a0e5 into rust-lang:master Feb 2, 2016
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 8, 2016
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
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 8, 2016
 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
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 11, 2016
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
bors added a commit that referenced this pull request Apr 12, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants