@@ -324,13 +324,13 @@ fn exported_symbols_provider_local(
324
324
let is_local_to_current_crate = |ty : Ty < ' _ > | {
325
325
let no_refs = ty. peel_refs ( ) ;
326
326
let root_def_id = match no_refs. kind ( ) {
327
- rustc_type_ir :: Adt ( adt_def, _) => adt_def. did ( ) ,
328
- rustc_type_ir :: Closure ( closure, _) => * closure,
329
- rustc_type_ir :: FnDef ( def_id, _) => * def_id,
330
- rustc_type_ir :: Coroutine ( def_id, _) => * def_id,
331
- rustc_type_ir :: CoroutineClosure ( def_id, _) => * def_id,
332
- rustc_type_ir :: CoroutineWitness ( def_id, _) => * def_id,
333
- rustc_type_ir :: Foreign ( def_id) => * def_id,
327
+ rustc_middle :: ty :: Adt ( adt_def, _) => adt_def. did ( ) ,
328
+ rustc_middle :: ty :: Closure ( closure, _) => * closure,
329
+ rustc_middle :: ty :: FnDef ( def_id, _) => * def_id,
330
+ rustc_middle :: ty :: Coroutine ( def_id, _) => * def_id,
331
+ rustc_middle :: ty :: CoroutineClosure ( def_id, _) => * def_id,
332
+ rustc_middle :: ty :: CoroutineWitness ( def_id, _) => * def_id,
333
+ rustc_middle :: ty :: Foreign ( def_id) => * def_id,
334
334
_ => {
335
335
return false ;
336
336
}
@@ -406,8 +406,8 @@ fn exported_symbols_provider_local(
406
406
} ;
407
407
let should_export = {
408
408
let root_identifier = match typ. kind ( ) {
409
- rustc_type_ir :: Adt ( def, args) => Some ( ( def. did ( ) , args) ) ,
410
- rustc_type_ir :: Closure ( id, args) => Some ( ( * id, args) ) ,
409
+ rustc_middle :: ty :: Adt ( def, args) => Some ( ( def. did ( ) , args) ) ,
410
+ rustc_middle :: ty :: Closure ( id, args) => Some ( ( * id, args) ) ,
411
411
_ => None ,
412
412
} ;
413
413
if let Some ( ( did, args) ) = root_identifier {
0 commit comments