about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-08-24 01:50:03 +0000
committerbors <bors@rust-lang.org>2019-08-24 01:50:03 +0000
commitc2f3174a278d587666b51adafd47d6147e4fd707 (patch)
tree99ec100b3f529270ed29dfcec20e65203079c6c0 /src/libsyntax/parse
parent49935246829165b2c4c5c69f981a300bcaa83d7f (diff)
parent3e061f7c495138767a0f21ac6a56d81a9faf573d (diff)
downloadrust-c2f3174a278d587666b51adafd47d6147e4fd707.tar.gz
rust-c2f3174a278d587666b51adafd47d6147e4fd707.zip
Auto merge of #63824 - Centril:split-feature_gate, r=oli-obk
Refactor `feature_gate.rs` into modules & cleanup

Split `src/libsyntax/feature_gate.rs` into `src/libsyntax/feature_gate/` with files:
- `accepted.rs` (accepted feature gates)
- `removed.rs` (...)
- `active.rs` (...)
- `builtin_attrs.rs` (definition of builtin attributes and their gates as well as gating `cfg` flags)
- `check.rs` (post expansion checking of feature gates)
- `mod.rs` (just reexports)

Additionally, `tidy.rs` is adjusted to respect the new scheme.

Also, `builtin_attrs.rs` sees some cleanup, organization, and DSL-ification to reduce repetition.

This is probably best read commit-by-commit I think.

r? @oli-obk
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions