rust/compiler/rustc_metadata/src
bors a89ca2c85e Auto merge of #134243 - nnethercote:re-export-more-rustc_span, r=jieyouxu
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 to `rustc_span::`. This is a 300+ net line of code reduction, mostly because many files with two `use rustc_span` items can be reduced to one.

r? `@jieyouxu`
2024-12-18 02:56:38 +00:00
..
rmeta Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
creader.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
dependency_format.rs Make dependency_formats an FxIndexMap rather than a list of tuples 2024-12-13 11:29:15 +00:00
errors.rs Allow injecting a profiler runtime into #![no_core] crates 2024-11-24 21:12:40 +11:00
foreign_modules.rs Do not fetch HIR in native_libs. 2023-07-17 07:37:03 +00:00
fs.rs Dogfood feature(file_buffered) 2024-09-24 14:25:16 -07:00
lib.rs Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dtolnay 2024-10-04 14:11:34 -07:00
locator.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
native_libs.rs Auto merge of #134243 - nnethercote:re-export-more-rustc_span, r=jieyouxu 2024-12-18 02:56:38 +00:00