rust/src/librustc_session
bors 13db6501c7 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.
2020-02-01 18:29:09 +00:00
..
lint lintify conflicting_repr_hints 2020-01-28 01:24:59 +01:00
Cargo.toml 1. move node_id to syntax 2020-02-01 18:58:08 +01:00
cgu_reuse_tracker.rs Rename syntax_pos to rustc_span in source code 2020-01-01 09:15:18 +03:00
code_stats.rs Format the world 2019-12-22 17:42:47 -05:00
config.rs Add support for Control Flow Guard on Windows. 2020-01-28 14:43:23 +00:00
filesearch.rs Format the world 2019-12-22 17:42:47 -05:00
lib.rs 1. move node_id to syntax 2020-02-01 18:58:08 +01:00
lint.rs 1. move node_id to syntax 2020-02-01 18:58:08 +01:00
options.rs Add support for Control Flow Guard on Windows. 2020-01-28 14:43:23 +00:00
parse.rs 1. move node_id to syntax 2020-02-01 18:58:08 +01:00
search_paths.rs Add -Z no-link flag 2020-01-23 11:00:36 +11:00
session.rs Fix tidy warnings 2020-01-22 15:34:39 -08:00
utils.rs Change -Z time event naming scheme and make them generic activities 2020-01-09 07:06:40 +01:00