@@ -134,7 +134,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
134
134
None => { }
135
135
}
136
136
137
- let hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( def_id) ;
137
+ let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
138
138
let node = tcx. hir ( ) . get ( hir_id) ;
139
139
140
140
let mut is_trait = None ;
@@ -412,7 +412,7 @@ fn const_evaluatable_predicates_of(
412
412
}
413
413
}
414
414
415
- let hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( def_id) ;
415
+ let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
416
416
let node = tcx. hir ( ) . get ( hir_id) ;
417
417
418
418
let mut collector = ConstCollector { tcx, preds : FxIndexSet :: default ( ) } ;
@@ -503,7 +503,7 @@ pub(super) fn explicit_predicates_of<'tcx>(
503
503
}
504
504
} else {
505
505
if matches ! ( def_kind, DefKind :: AnonConst ) && tcx. features ( ) . generic_const_exprs {
506
- let hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( def_id) ;
506
+ let hir_id = tcx. local_def_id_to_hir_id ( def_id) ;
507
507
let parent_def_id = tcx. hir ( ) . get_parent_item ( hir_id) ;
508
508
509
509
if let Some ( defaulted_param_def_id) =
@@ -571,7 +571,7 @@ pub(super) fn explicit_predicates_of<'tcx>(
571
571
// To fix this, we call `explicit_predicates_of` directly on `foo`, the parent's parent.
572
572
573
573
// In the above example this is `foo::{opaque#0}` or `impl Iterator`
574
- let parent_hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( parent_def_id. def_id ) ;
574
+ let parent_hir_id = tcx. local_def_id_to_hir_id ( parent_def_id. def_id ) ;
575
575
576
576
// In the above example this is the function `foo`
577
577
let item_def_id = tcx. hir ( ) . get_parent_item ( parent_hir_id) ;
@@ -631,7 +631,7 @@ pub(super) fn implied_predicates_with_filter(
631
631
return tcx. super_predicates_of ( trait_def_id) ;
632
632
} ;
633
633
634
- let trait_hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( trait_def_id) ;
634
+ let trait_hir_id = tcx. local_def_id_to_hir_id ( trait_def_id) ;
635
635
636
636
let Node :: Item ( item) = tcx. hir ( ) . get ( trait_hir_id) else {
637
637
bug ! ( "trait_node_id {} is not an item" , trait_hir_id) ;
@@ -691,7 +691,7 @@ pub(super) fn type_param_predicates(
691
691
// written inline like `<T: Foo>` or in a where-clause like
692
692
// `where T: Foo`.
693
693
694
- let param_id = tcx. hir ( ) . local_def_id_to_hir_id ( def_id) ;
694
+ let param_id = tcx. local_def_id_to_hir_id ( def_id) ;
695
695
let param_owner = tcx. hir ( ) . ty_param_owner ( def_id) ;
696
696
let generics = tcx. generics_of ( param_owner) ;
697
697
let index = generics. param_def_id_to_index [ & def_id. to_def_id ( ) ] ;
@@ -712,7 +712,7 @@ pub(super) fn type_param_predicates(
712
712
. unwrap_or_default ( ) ;
713
713
let mut extend = None ;
714
714
715
- let item_hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( item_def_id) ;
715
+ let item_hir_id = tcx. local_def_id_to_hir_id ( item_def_id) ;
716
716
let ast_generics = match tcx. hir ( ) . get ( item_hir_id) {
717
717
Node :: TraitItem ( item) => item. generics ,
718
718
0 commit comments