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

Initial work towards abort-free compilation #31206

Merged
merged 2 commits into from
Jan 27, 2016
Merged

Conversation

nrc
Copy link
Member

@nrc nrc commented Jan 26, 2016

nrc added 2 commits January 26, 2016 17:51
The goal is that the compiler will pass `Result`s around rather than using abort_if_errors. To preserve behaviour we currently abort at the top level. I've removed all other aborts from the driver, but haven't touched any of the nested aborts.
@@ -57,45 +57,50 @@ use syntax::visit;
use syntax;
use syntax_ext;

pub fn compile_input(sess: Session,
macro_rules! throw_if_errors {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the word throw here is ok... but I'd probably tend towards return

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jan 26, 2016

📌 Commit 7b47f5e has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Jan 27, 2016

⌛ Testing commit 7b47f5e with merge b8b18aa...

bors added a commit that referenced this pull request Jan 27, 2016
@bors bors merged commit 7b47f5e into rust-lang:master Jan 27, 2016
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.

3 participants