rust/compiler/rustc_macros/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
..
diagnostics Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
symbols Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
current_version.rs Simplify the current_rustc_version macro. 2023-11-10 10:54:21 +11:00
extension.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hash_stable.rs Make synstructure underscore_const(true) the default 2024-02-17 13:57:33 +01:00
lib.rs Add a macro that derives TryFrom<u32> for fieldless enums 2024-10-26 20:19:53 +11:00
lift.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
query.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
serialize.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
symbols.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
try_from.rs Use LLVM-C APIs for getting/setting visibility 2024-10-27 11:05:33 +11:00
type_foldable.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
type_visitable.rs Add warn(unreachable_pub) to rustc_metadata. 2024-08-29 20:13:06 +10:00