rust/compiler/rustc_borrowck/src/diagnostics
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
..
bound_region_errors.rs Put param_env into infcx. 2024-11-19 11:44:07 +11:00
conflict_errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
explain_borrow.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
find_all_local_uses.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
find_use.rs Use Rc less in MirBorrowckCtxt. 2024-10-04 16:46:20 +10:00
mod.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
move_errors.rs Put param_env into infcx. 2024-11-19 11:44:07 +11:00
mutability_errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
opaque_suggestions.rs Dont suggest use<APIT> 2024-11-09 19:41:53 +00:00
outlives_suggestion.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
region_errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
region_name.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
var_name.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00