rust/src/librustc_metadata
Mazdak Farrokhzad 9634e1f7d9
Rollup merge of #67806 - Centril:splitsynmore, r=petrochenkov
Extract `rustc_ast_passes`, move gating, & refactor linting

Based on https://github.com/rust-lang/rust/pull/67770.

This PR extracts a crate `rustc_ast_passes`:

- `ast_validation.rs`, which is contributed by `rustc_passes` (now only has HIR based passes) -- the goal here is to improve recompilation of the parser,
- `feature_gate.rs`, which is contributed by `syntax` and performs post-expansion-gating & final erroring for pre-expansion gating,
- `show_span`, which is contributed by `syntax`.

To facilitate this, we first have to also:

- Move `{leveled_}feature_err{_err}` from `syntax::feature_gate::check` into `rustc_session::parse`.
- Move `get_features` into `rustc_parse::config`, the only place it is used.
- Move some some lint datatypes and traits, e.g. `LintBuffer`, `BufferedEarlyLint`, `BuiltinLintDiagnostics`, `LintPass`, and `LintArray` into `rustc_session::lint`.
- Move all the hard-wired lint `static`s into `rustc_session::lint::builtin`.
2020-01-11 04:02:22 +01:00
..
dynamic_lib Format the world 2019-12-22 17:42:47 -05:00
rmeta Auto merge of #65241 - tmiasko:no-std-san, r=alexcrichton 2020-01-10 23:26:21 +00:00
build.rs
Cargo.toml nix syntax::errors & prefer rustc_errors over errors 2020-01-10 07:41:30 +01:00
creader.rs Auto merge of #65241 - tmiasko:no-std-san, r=alexcrichton 2020-01-10 23:26:21 +00:00
dependency_format.rs Remove rustc_hir reexports in rustc::hir. 2020-01-05 12:49:22 +01:00
dynamic_lib.rs Format the world 2019-12-22 17:42:47 -05:00
foreign_modules.rs Remove rustc_hir reexports in rustc::hir. 2020-01-05 12:49:22 +01:00
lib.rs Rename syntax_pos to rustc_span in source code 2020-01-01 09:15:18 +03:00
link_args.rs Remove rustc_hir reexports in rustc::hir. 2020-01-05 12:49:22 +01:00
locator.rs nix syntax::errors & prefer rustc_errors over errors 2020-01-10 07:41:30 +01:00
native_libs.rs simplify feature_err imports 2020-01-11 03:19:50 +01:00