Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAvoid gated feature checking unconfigured expanded items #32846
Conversation
jseyfried
added some commits
Apr 8, 2016
rust-highfive
assigned
nrc
Apr 8, 2016
LeoTestard
reviewed
Apr 8, 2016
| *sess.features.borrow_mut() = features; | ||
| }) | ||
| })?; | ||
|
|
This comment has been minimized.
This comment has been minimized.
LeoTestard
Apr 8, 2016
Contributor
There is already a second feature gate checking pass just a bit later in the same function (“complete gated feature checking 2”). I'm not sure this first pass is necessary at all. I considered removing it as part of #32791 but then thought I'd do a separate PR.
This comment has been minimized.
This comment has been minimized.
jseyfried
added some commits
Apr 9, 2016
jseyfried
reviewed
Apr 9, 2016
| let it = expand_item_multi_modifier(Annotatable::Item(it), fld); | ||
|
|
||
| expand_annotatable(it, fld) | ||
| expand_annotatable(Annotatable::Item(it), fld) |
This comment has been minimized.
This comment has been minimized.
jseyfried
Apr 9, 2016
Author
Contributor
expand_annotatable begins with a call to expand_item_multi_modifier, which is idempotent (cf #21052).
This is unrelated to the rest of the PR.
nrc
added
I-nominated
T-lang
labels
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
|
Code looks fine, but @rust-lang/lang should discuss. |
jseyfried
referenced this pull request
Apr 22, 2016
Closed
`#[cfg_attr]` doesn't work with `path` attribute #25544
This comment has been minimized.
This comment has been minimized.
|
cf #25544 |
This comment has been minimized.
This comment has been minimized.
|
Finally discussed in lang-team meeting. We agree that feature-gated items which are "configured out" by should not generate warnings, whether they result from macro expansion or not. i.e., this PR seems good. :) |
nikomatsakis
removed
the
I-nominated
label
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors retry |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 30, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors retry |
jseyfried commentedApr 8, 2016
Avoid gated feature checking unconfigured macro-expanded items (fixes #32840).
Unconfigured items that are not macro-expanded are already not gated feature checked.
r? @nrc