rust/src/librustc_codegen_ssa/back
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
..
rpath Format the world 2019-12-22 17:42:47 -05:00
archive.rs Normalize syntax::symbol imports. 2020-01-02 13:57:04 +01:00
command.rs Normalize syntax::symbol imports. 2020-01-02 13:57:04 +01:00
link.rs Auto merge of #68133 - Centril:slimmer-syntax, r=petrochenkov 2020-02-01 18:29:09 +00:00
linker.rs Add support for Control Flow Guard on Windows. 2020-01-28 14:43:23 +00:00
lto.rs Format the world 2019-12-22 17:42:47 -05:00
mod.rs Format the world 2019-12-22 17:42:47 -05:00
rpath.rs Remove rustc_hir reexports in rustc::hir. 2020-01-05 12:49:22 +01:00
symbol_export.rs Add projection query for upstream drop-glue instances. 2020-01-23 16:56:59 +01:00
write.rs Make ExportedSymbols type more local because it's not supposed to be 2020-01-23 13:15:15 +01:00