Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4c3a88a

Browse files
committed
style: Don't use rustc_type_ir paths directly
1 parent 130ae94 commit 4c3a88a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,13 @@ fn exported_symbols_provider_local(
325325
let is_local_to_current_crate = |ty: Ty<'_>| {
326326
let no_refs = ty.peel_refs();
327327
let root_def_id = match no_refs.kind() {
328-
rustc_type_ir::Adt(adt_def, _) => adt_def.did(),
329-
rustc_type_ir::Closure(closure, _) => *closure,
330-
rustc_type_ir::FnDef(def_id, _) => *def_id,
331-
rustc_type_ir::Coroutine(def_id, _) => *def_id,
332-
rustc_type_ir::CoroutineClosure(def_id, _) => *def_id,
333-
rustc_type_ir::CoroutineWitness(def_id, _) => *def_id,
334-
rustc_type_ir::Foreign(def_id) => *def_id,
328+
rustc_middle::ty::Adt(adt_def, _) => adt_def.did(),
329+
rustc_middle::ty::Closure(closure, _) => *closure,
330+
rustc_middle::ty::FnDef(def_id, _) => *def_id,
331+
rustc_middle::ty::Coroutine(def_id, _) => *def_id,
332+
rustc_middle::ty::CoroutineClosure(def_id, _) => *def_id,
333+
rustc_middle::ty::CoroutineWitness(def_id, _) => *def_id,
334+
rustc_middle::ty::Foreign(def_id) => *def_id,
335335
_ => {
336336
return false;
337337
}
@@ -407,8 +407,8 @@ fn exported_symbols_provider_local(
407407
};
408408
let should_export = {
409409
let root_identifier = match typ.kind() {
410-
rustc_type_ir::Adt(def, args) => Some((def.did(), args)),
411-
rustc_type_ir::Closure(id, args) => Some((*id, args)),
410+
rustc_middle::ty::Adt(def, args) => Some((def.did(), args)),
411+
rustc_middle::ty::Closure(id, args) => Some((*id, args)),
412412
_ => None,
413413
};
414414
if let Some((did, args)) = root_identifier {

0 commit comments

Comments
 (0)