diff options
| author | Romain Perier <romain.perier@gmail.com> | 2025-05-01 18:40:38 +0200 |
|---|---|---|
| committer | Romain Perier <romain.perier@gmail.com> | 2025-05-02 09:37:06 +0200 |
| commit | 6970813e78a1d0f4298859471aaafece5e674a33 (patch) | |
| tree | e85d569d4df8b99935f83f2023b112d233249a19 /compiler/rustc_infer/src/traits/util.rs | |
| parent | 0e517d38ad0e72f93c734b14fabd4bb9b7441de6 (diff) | |
| download | rust-6970813e78a1d0f4298859471aaafece5e674a33.tar.gz rust-6970813e78a1d0f4298859471aaafece5e674a33.zip | |
Use less rustc_type_ir in the compiler codebase
This commit does the following:
- Replaces use of rustc_type_ir by rustc_middle in rustc_infer.
- The DelayedMap type is exposed by rustc_middle so everything can be
accessed through rustc_middle in a coherent manner.
- API-layer traits, like InferCtxtLike, Interner or inherent::* must be
accessed via rustc_type_ir, not rustc_middle::ty. For this reason
these are not reexported by rustc_middle::ty.
- Replaces use of ty::Interner by rustc_type_ir::Interner in
rustc_trait_selection
Diffstat (limited to 'compiler/rustc_infer/src/traits/util.rs')
| -rw-r--r-- | compiler/rustc_infer/src/traits/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/traits/util.rs b/compiler/rustc_infer/src/traits/util.rs index 66ed49fe326..6461fbe0d33 100644 --- a/compiler/rustc_infer/src/traits/util.rs +++ b/compiler/rustc_infer/src/traits/util.rs @@ -1,7 +1,7 @@ use rustc_data_structures::fx::FxHashSet; +pub use rustc_middle::ty::elaborate::*; use rustc_middle::ty::{self, TyCtxt}; use rustc_span::{Ident, Span}; -pub use rustc_type_ir::elaborate::*; use crate::traits::{self, Obligation, ObligationCauseCode, PredicateObligation}; |
