diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-18 22:02:10 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-21 17:36:57 +0000 |
| commit | 45929a8f46d1aed33912fa2d05720cdb92b8d7de (patch) | |
| tree | 1d9e9c40bf38f47b89dbc8c5c72fbbd9b7ada07b /compiler/rustc_trait_selection/src/traits/select/mod.rs | |
| parent | cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 (diff) | |
| download | rust-45929a8f46d1aed33912fa2d05720cdb92b8d7de.tar.gz rust-45929a8f46d1aed33912fa2d05720cdb92b8d7de.zip | |
Move supertrait_def_ids into the elaborate module like all other fns
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/select/mod.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index 5581ea46882..0cc0d7f786b 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -32,6 +32,7 @@ use rustc_middle::ty::{ TypingMode, Upcast, }; use rustc_span::{Symbol, sym}; +use rustc_type_ir::elaborate; use tracing::{debug, instrument, trace}; use self::EvaluationResult::*; @@ -2531,7 +2532,8 @@ impl<'tcx> SelectionContext<'_, 'tcx> { let a_auto_traits: FxIndexSet<DefId> = a_data .auto_traits() .chain(a_data.principal_def_id().into_iter().flat_map(|principal_def_id| { - tcx.supertrait_def_ids(principal_def_id).filter(|def_id| tcx.trait_is_auto(*def_id)) + elaborate::supertrait_def_ids(tcx, principal_def_id) + .filter(|def_id| tcx.trait_is_auto(*def_id)) })) .collect(); |
