rust/src/librustc_metadata
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
..
dynamic_lib Separate librustc_metadata module 2019-06-16 14:17:01 +03:00
rmeta rustc: Move some queries to rustc_metadata 2019-11-28 20:59:57 +03:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Update to use new librustc_error_codes library 2019-11-14 13:05:42 +01:00
creader.rs rustc: Move some queries to rustc_metadata 2019-11-28 20:59:57 +03:00
dependency_format.rs rustc: Move some queries to rustc_metadata 2019-11-28 20:59:57 +03:00
dynamic_lib.rs rustc_metadata: Privatize private code and remove dead code 2019-10-14 18:05:45 +03:00
foreign_modules.rs rustc_metadata: Privatize private code and remove dead code 2019-10-14 18:05:45 +03:00
lib.rs rustc_metadata: Merge cstore.rs into creader.rs 2019-11-28 20:59:56 +03:00
link_args.rs Make doc comments cheaper with AttrKind. 2019-11-06 23:05:07 +11:00
locator.rs rustc_metadata: Pass SVH by value 2019-11-28 20:59:57 +03:00
native_libs.rs move GateIssue to rustc_feature & simplify emit_feature_err 2019-11-30 07:40:28 +01:00