rust/src/librustdoc
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
..
clean Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
html move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
passes move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
test Separate librustcdoc module 2019-06-16 14:17:01 +03:00
theme librustdoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
Cargo.toml Rebase rustc-rayon on rayon-1.2 2019-10-07 13:20:17 -07:00
config.rs improve error messages and documentation 2019-11-18 16:43:48 +01:00
core.rs Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
docfs.rs Better handling of the sender channel part in rustdoc file writing 2019-06-21 12:00:49 +02:00
doctree.rs rustc, rustc_passes: don't depend on syntax_expand. 2019-10-27 17:05:57 +01:00
externalfiles.rs move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
fold.rs Remove ReentrantMutex 2019-08-11 10:36:46 -04:00
lib.rs introduce crate rustc_feature and move active, accepted, and removed to it 2019-11-30 00:25:40 +01:00
markdown.rs move UnstableFeatures -> rustc_feature 2019-11-30 02:50:47 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
test.rs Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
theme.rs Warn instead of failing for themes 2019-11-18 16:43:47 +01:00
visit_ast.rs hir::ItemKind::Fn: use hir::MethodSig 2019-11-08 09:32:20 +01:00
visit_lib.rs Mutate DocContext from LibEmbargoVisitor and RustdocVisitor 2019-08-26 18:51:34 -04:00

For more information about how librustdoc works, see the rustc guide.