1
Fork 0
rust/compiler/rustc_session/src
Nicholas Nethercote 2620eb42d7 Re-export more rustc_span::symbol things from rustc_span.
`rustc_span::symbol` defines some things that are re-exported from
`rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some
closely related things such as `Ident` and `kw`. So you can do `use
rustc_span::{Symbol, sym}` but you have to do `use
rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good
reason.

This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`,
and changes many `rustc_span::symbol::` qualifiers in `compiler/` to
`rustc_span::`. This is a 200+ net line of code reduction, mostly
because many files with two `use rustc_span` items can be reduced to
one.
2024-12-18 13:38:53 +11:00
..
config Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
code_stats.rs compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
config.rs We don't need NonNull::as_ptr debuginfo 2024-12-10 01:29:43 -08:00
cstore.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
errors.rs rust_for_linux: -Zreg-struct-return commandline flag for X86 (#116973) 2024-12-02 01:14:40 +07:00
filesearch.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
lib.rs rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
options.rs Auto merge of #133899 - scottmcm:strip-mir-debuginfo, r=oli-obk 2024-12-13 08:32:20 +00:00
output.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
parse.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
search_paths.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
session.rs Remove registered_lints field from Session 2024-12-13 10:46:53 +00:00
utils.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00