diff options
| author | bors <bors@rust-lang.org> | 2020-02-01 18:29:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-01 18:29:09 +0000 |
| commit | 13db6501c7273cd1997ce20e15106f362e5613c4 (patch) | |
| tree | 57e51357738bcddc9ce15e18ac5da193f57035d3 /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 64184a3288eca13ddfb7bc2e7b5231cbb8d5b88f (diff) | |
| parent | 1a3141c86e9b91d4f75117075d943b72ee7dba48 (diff) | |
| download | rust-13db6501c7273cd1997ce20e15106f362e5613c4.tar.gz rust-13db6501c7273cd1997ce20e15106f362e5613c4.zip | |
Auto merge of #68133 - Centril:slimmer-syntax, r=petrochenkov
Slimmer syntax
High-level summary of changes:
- The `syntax::node_count` pass is moved into `rustc_ast_passes`. This works towards improving #65031 by making compiling `syntax` go faster.
- The `syntax::{GLOBALS, with_globals, ..}` business is consolidated into `syntax::attr` for cleaner code and future possible improvements.
- The pretty printer loses its dependency on `ParseSess`, opting to use `SourceMap` & friends directly instead.
- Some drive by cleanup of `syntax::attr::HasAttr` happens.
- Builtin attribute logic (`syntax::attr::builtin`) + `syntax::attr::allow_internal_unstable` is moved into a new `rustc_attr` crate. More logic from `syntax::attr` should be moved into that crate over time. This also means that `syntax` loses all mentions of `ParseSess`, which enables the next point.
- The pretty printer `syntax::print` is moved into a new crate `rustc_ast_pretty`.
- `rustc_session::node_id` is moved back as `syntax::node_id`. As a result, `syntax` gets to drop dependencies on `rustc_session` (and implicitly `rustc_target`), `rustc_error_codes`, and `rustc_errors`. Moreover `rustc_hir` gets to drop its dependency on `rustc_session` as well. At this point, these crates are mostly "pure data crates", which is approaching a desirable end state.
- We should consider renaming `syntax` to `rustc_ast` now.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
