Uh oh!
There was an error while loading. Please reload this page.
Avoid gated feature checking unconfigured expanded items - #32846
Conversation
| *sess.features.borrow_mut() = features; | ||
| }) | ||
| })?; | ||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Good point, I'll remove it.
| let it = expand_item_multi_modifier(Annotatable::Item(it), fld); | ||
| expand_annotatable(it, fld) | ||
| expand_annotatable(Annotatable::Item(it), fld) |
There was a problem hiding this comment.
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
commented
Apr 12, 2016
Code looks fine, but @rust-lang/lang should discuss. |
jseyfried
commented
Apr 22, 2016
cf #25544 |
nikomatsakis
commented
Apr 28, 2016
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. :) |
nrc
commented
Apr 28, 2016
@bors: r+ |
bors
commented
Apr 28, 2016
📌 Commit 86f069d has been approved by |
bors
commented
Apr 28, 2016
⌛ Testing commit 86f069d with merge 8bd01ad... |
bors
commented
Apr 29, 2016
💔 Test failed - auto-win-msvc-64-opt |
jseyfried
commented
Apr 30, 2016
@bors retry |
bors
commented
Apr 30, 2016
⌛ Testing commit 86f069d with merge c5ec369... |
bors
commented
Apr 30, 2016
💔 Test failed - auto-mac-64-nopt-t |
jseyfried
commented
Apr 30, 2016
@bors retry |
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