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_hir_analysis/src/coherence/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_hir_analysis/src/coherence/mod.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/coherence/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/coherence/mod.rs b/compiler/rustc_hir_analysis/src/coherence/mod.rs index 1be4aa2f63a..951e8f1da4c 100644 --- a/compiler/rustc_hir_analysis/src/coherence/mod.rs +++ b/compiler/rustc_hir_analysis/src/coherence/mod.rs @@ -13,6 +13,7 @@ use rustc_middle::query::Providers; use rustc_middle::ty::{self, TyCtxt, TypeVisitableExt}; use rustc_session::parse::feature_err; use rustc_span::{ErrorGuaranteed, sym}; +use rustc_type_ir::elaborate; use tracing::debug; use crate::errors; @@ -205,7 +206,7 @@ fn check_object_overlap<'tcx>( // With the feature enabled, the trait is not implemented automatically, // so this is valid. } else { - let mut supertrait_def_ids = tcx.supertrait_def_ids(component_def_id); + let mut supertrait_def_ids = elaborate::supertrait_def_ids(tcx, component_def_id); if supertrait_def_ids .any(|d| d == trait_def_id && tcx.trait_def(d).implement_via_object) { |
