@@ -294,9 +294,9 @@ impl<'tcx> InliningMap<'tcx> {
294
294
}
295
295
}
296
296
297
- pub fn collect_crate_translation_items < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
298
- mode : MonoItemCollectionMode )
299
- -> ( FxHashSet < MonoItem < ' tcx > > ,
297
+ pub fn collect_crate_mono_items < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
298
+ mode : MonoItemCollectionMode )
299
+ -> ( FxHashSet < MonoItem < ' tcx > > ,
300
300
InliningMap < ' tcx > ) {
301
301
let roots = collect_roots ( tcx, mode) ;
302
302
@@ -521,10 +521,10 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirNeighborCollector<'a, 'tcx> {
521
521
// from a fixed sized array to a slice. But we are only
522
522
// interested in things that produce a vtable.
523
523
if target_ty. is_trait ( ) && !source_ty. is_trait ( ) {
524
- create_trans_items_for_vtable_methods ( self . tcx ,
525
- target_ty,
526
- source_ty,
527
- self . output ) ;
524
+ create_mono_items_for_vtable_methods ( self . tcx ,
525
+ target_ty,
526
+ source_ty,
527
+ self . output ) ;
528
528
}
529
529
}
530
530
mir:: Rvalue :: Cast ( mir:: CastKind :: ReifyFnPointer , ref operand, _) => {
@@ -844,10 +844,10 @@ fn create_fn_trans_item<'a, 'tcx>(instance: Instance<'tcx>) -> MonoItem<'tcx> {
844
844
845
845
/// Creates a `TransItem` for each method that is referenced by the vtable for
846
846
/// the given trait/impl pair.
847
- fn create_trans_items_for_vtable_methods < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
848
- trait_ty : Ty < ' tcx > ,
849
- impl_ty : Ty < ' tcx > ,
850
- output : & mut Vec < MonoItem < ' tcx > > ) {
847
+ fn create_mono_items_for_vtable_methods < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
848
+ trait_ty : Ty < ' tcx > ,
849
+ impl_ty : Ty < ' tcx > ,
850
+ output : & mut Vec < MonoItem < ' tcx > > ) {
851
851
assert ! ( !trait_ty. needs_subst( ) && !trait_ty. has_escaping_regions( ) &&
852
852
!impl_ty. needs_subst( ) && !impl_ty. has_escaping_regions( ) ) ;
853
853
@@ -900,9 +900,9 @@ impl<'b, 'a, 'v> ItemLikeVisitor<'v> for RootCollector<'b, 'a, 'v> {
900
900
901
901
hir:: ItemImpl ( ..) => {
902
902
if self . mode == MonoItemCollectionMode :: Eager {
903
- create_trans_items_for_default_impls ( self . tcx ,
904
- item,
905
- self . output ) ;
903
+ create_mono_items_for_default_impls ( self . tcx ,
904
+ item,
905
+ self . output ) ;
906
906
}
907
907
}
908
908
@@ -996,9 +996,9 @@ fn item_has_type_parameters<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
996
996
generics. parent_types as usize + generics. types . len ( ) > 0
997
997
}
998
998
999
- fn create_trans_items_for_default_impls < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
1000
- item : & ' tcx hir:: Item ,
1001
- output : & mut Vec < MonoItem < ' tcx > > ) {
999
+ fn create_mono_items_for_default_impls < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
1000
+ item : & ' tcx hir:: Item ,
1001
+ output : & mut Vec < MonoItem < ' tcx > > ) {
1002
1002
match item. node {
1003
1003
hir:: ItemImpl ( _,
1004
1004
_,
0 commit comments