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

Simplify gated cfg checking #34272

Merged
merged 1 commit into from
Jun 17, 2016

Conversation

jseyfried
Copy link
Contributor

r? @nrc

// these need to be set "early" so that expansion sees `quote` if enabled.
*sess.features.borrow_mut() = features;
krate
});
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to stop compilation if there were errors here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see any reason to stop compilation -- the only errors that get reported here are malformed cfg attributes (in which case the item is kept), malformed cfg_attr attributes (in which case the attribute is removed), and malformed feature attributes (in which case we might not see the features).
At worst, the user might see some gated feature errors for a feature they intended to use.

Copy link
Contributor Author

@jseyfried jseyfried Jun 16, 2016

Choose a reason for hiding this comment

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

(also, gated cfg errors are reported, which definitely don't require us to stop compilation)

@nrc
Copy link
Member

nrc commented Jun 16, 2016

@bors: r+

@bors
Copy link
Contributor

bors commented Jun 16, 2016

📌 Commit 80292a8 has been approved by nrc

@bors
Copy link
Contributor

bors commented Jun 16, 2016

☔ The latest upstream changes (presumably #34216) made this pull request unmergeable. Please resolve the merge conflicts.

@jseyfried jseyfried force-pushed the simplify_gated_cfg_checking branch from 80292a8 to 64be754 Compare June 16, 2016 17:33
@bors
Copy link
Contributor

bors commented Jun 16, 2016

📌 Commit 64be754 has been approved by nrc

@jseyfried jseyfried force-pushed the simplify_gated_cfg_checking branch from 64be754 to 92a9405 Compare June 16, 2016 18:31
@bors
Copy link
Contributor

bors commented Jun 16, 2016

📌 Commit 92a9405 has been approved by nrc

@jseyfried jseyfried force-pushed the simplify_gated_cfg_checking branch from 92a9405 to 2cd6ccf Compare June 16, 2016 19:43
@jseyfried
Copy link
Contributor Author

@bors r=nrc

@bors
Copy link
Contributor

bors commented Jun 16, 2016

📌 Commit 2cd6ccf has been approved by nrc

@bors
Copy link
Contributor

bors commented Jun 16, 2016

⌛ Testing commit 2cd6ccf with merge f911d87...

bors added a commit that referenced this pull request Jun 16, 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.

None yet

3 participants