rust/compiler/rustc_ty_utils/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
..
layout improve TagEncoding::Niche docs and sanity check 2024-11-30 18:26:30 +01:00
abi.rs Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
assoc.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
common_traits.rs move fn is_item_raw to TypingEnv 2024-11-19 18:06:20 +01:00
consts.rs compiler: Directly use rustc_abi in ty_utils 2024-11-03 13:38:47 -08:00
errors.rs Add warn(unreachable_pub) to rustc_ty_utils. 2024-09-03 08:50:33 +10:00
implied_bounds.rs uplift fold_regions to rustc_type_ir 2024-11-28 10:40:58 +01:00
instance.rs Move refinement check out of compare_impl_item 2024-11-30 16:45:01 +00:00
layout.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs compiler: pre-move code for fixing enum layout ICEs 2024-10-20 02:09:22 -07:00
needs_drop.rs remove Ty::is_copy_modulo_regions 2024-12-02 13:57:56 +01:00
opaque_types.rs Encode cross-crate opaque type origin 2024-10-31 01:35:13 +00:00
representability.rs Remove extern crate rustc_middle from rustc_ty_utils. 2024-05-13 08:20:18 +10:00
sig_types.rs Stop using a special inner body for the coroutine by-move body for async closures 2024-08-26 18:44:19 -04:00
structural_match.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
ty.rs uplift fold_regions to rustc_type_ir 2024-11-28 10:40:58 +01:00