]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #22383 - pnkfelix:pass-features-along-during-expansion, r=huonw
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 17 Feb 2015 10:24:25 +0000 (15:54 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 17 Feb 2015 12:03:20 +0000 (17:33 +0530)
commit020e4e4ad981ce0518bd8e3464ac592717c41143
treefeca45da907af4dedc7aa930a8292a5fdf78073a
parent0e892283612ea21ce5aeb3be930296623facab36
parentdc0797c0c99e7079170d0e09f82fc6f66b721932
Rollup merge of #22383 - pnkfelix:pass-features-along-during-expansion, r=huonw

 Pass features along during expansion

Use the set of passed features to detect uses of feature-gated macros without the corresponding feature enabled.

Fix #22234.

----

Also, the framework this add (passing along a reference to the features in the expansion context) is a necessary precursor for landing a properly feature-gated desugaring-based overloaded-`box` and placement-`in` (#22181).

----

This is fixing a bug, but since there might be code out there that is unknowingly taking advantage of that bug, I feel obligated to mark this as a:

[breaking-change]
src/librustc_driver/driver.rs
src/libsyntax/ext/base.rs
src/libsyntax/ext/expand.rs
src/libsyntax/feature_gate.rs