diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-11 04:02:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-11 04:02:22 +0100 |
| commit | 9634e1f7d972e6122890c6c6866127bb3ba61c9a (patch) | |
| tree | e3558129f2d8651ef785ed9acc01575550247608 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 76edc5c4eb511d7d6e7b04b3c20c9bdcebe42ee6 (diff) | |
| parent | 682f500c8f5d54197d8974b5c4371306e2faecc8 (diff) | |
| download | rust-9634e1f7d972e6122890c6c6866127bb3ba61c9a.tar.gz rust-9634e1f7d972e6122890c6c6866127bb3ba61c9a.zip | |
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`.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
