rust/compiler/rustc_builtin_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
..
assert Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
deriving Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
format_foreign Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
alloc_error_handler.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
asm.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
assert.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
autodiff.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cfg.rs rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
cfg_accessible.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cfg_eval.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cmdline_attrs.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
compile_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
concat_bytes.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
concat_idents.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
derive.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
edition_panic.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
env.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
format.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
format_foreign.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
global_allocator.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
proc_macro_harness.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
source_util.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
standard_library_imports.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
test.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
test_harness.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
trace_macros.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
util.rs Fix bug where option_env! would return None when env var is present but not valid Unicode 2024-10-13 02:10:19 +01:00