rust/src/librustc_resolve
Mazdak Farrokhzad b772b5b19d
Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk
Feature gating *declarations* => new crate `rustc_feature`

This PR moves the data-oriented parts of feature gating into its own crate, `rustc_feature`.
The parts consist of some data types as well as `accepted`, `active`, `removed`, and `builtin_attrs`.

Feature gate checking itself remains in `syntax::feature_gate::check`. The parts which define how to emit feature gate errors could probably be moved to `rustc_errors` or to the new `rustc_session` crate introduced in #66878. The visitor itself could probably be moved as a pass in `rustc_passes` depending on how the dependency edges work out.

The PR also contains some drive-by cleanup of feature gate checking. As such, the PR probably best read commit-by-commit.

r? @oli-obk
cc @petrochenkov
cc @Mark-Simulacrum
2019-11-30 16:56:58 +01:00
..
late Update to use new librustc_error_codes library 2019-11-14 13:05:42 +01:00
build_reduced_graph.rs Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
Cargo.toml builtin_attrs.rs -> rustc_feature 2019-11-30 02:34:18 +01:00
check_unused.rs use American spelling for pluralize! 2019-11-05 15:10:24 -05:00
def_collector.rs def_collector: Do not forget to save indices of fields with multiple attributes 2019-11-24 11:47:45 +03:00
diagnostics.rs builtin_attrs.rs -> rustc_feature 2019-11-30 02:34:18 +01:00
late.rs resolve: more declarative fresh_binding 2019-11-22 19:33:11 +01:00
lib.rs rustc_metadata: Merge cstore.rs into creader.rs 2019-11-28 20:59:56 +03:00
macros.rs move GateIssue to rustc_feature & simplify emit_feature_err 2019-11-30 07:40:28 +01:00
resolve_imports.rs Various cleanups 2019-11-25 13:30:52 -08:00