mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 21:17:39 +00:00
![]() `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. |
||
---|---|---|
.. | ||
aarch64.rs | ||
arm.rs | ||
avr.rs | ||
bpf.rs | ||
csky.rs | ||
hexagon.rs | ||
loongarch.rs | ||
m68k.rs | ||
mips.rs | ||
mod.rs | ||
msp430.rs | ||
nvptx.rs | ||
powerpc.rs | ||
riscv.rs | ||
s390x.rs | ||
sparc.rs | ||
spirv.rs | ||
wasm.rs | ||
x86.rs |