@@ -178,7 +178,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
178
178
179
179
pub ( super ) fn lower_item_ref ( & mut self , i : & Item ) -> SmallVec < [ hir:: ItemId ; 1 ] > {
180
180
let mut node_ids =
181
- smallvec ! [ hir:: ItemId { def_id : hir:: OwnerId { def_id: self . local_def_id( i. id) } } ] ;
181
+ smallvec ! [ hir:: ItemId { owner_id : hir:: OwnerId { def_id: self . local_def_id( i. id) } } ] ;
182
182
if let ItemKind :: Use ( ref use_tree) = & i. kind {
183
183
self . lower_item_id_use_tree ( use_tree, i. id , & mut node_ids) ;
184
184
}
@@ -195,7 +195,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
195
195
UseTreeKind :: Nested ( ref nested_vec) => {
196
196
for & ( ref nested, id) in nested_vec {
197
197
vec. push ( hir:: ItemId {
198
- def_id : hir:: OwnerId { def_id : self . local_def_id ( id) } ,
198
+ owner_id : hir:: OwnerId { def_id : self . local_def_id ( id) } ,
199
199
} ) ;
200
200
self . lower_item_id_use_tree ( nested, id, vec) ;
201
201
}
@@ -206,7 +206,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
206
206
iter:: zip ( self . expect_full_res_from_use ( base_id) . skip ( 1 ) , & [ id1, id2] )
207
207
{
208
208
vec. push ( hir:: ItemId {
209
- def_id : hir:: OwnerId { def_id : self . local_def_id ( id) } ,
209
+ owner_id : hir:: OwnerId { def_id : self . local_def_id ( id) } ,
210
210
} ) ;
211
211
}
212
212
}
@@ -220,7 +220,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
220
220
let attrs = self . lower_attrs ( hir_id, & i. attrs ) ;
221
221
let kind = self . lower_item_kind ( i. span , i. id , hir_id, & mut ident, attrs, vis_span, & i. kind ) ;
222
222
let item = hir:: Item {
223
- def_id : hir_id. expect_owner ( ) ,
223
+ owner_id : hir_id. expect_owner ( ) ,
224
224
ident : self . lower_ident ( ident) ,
225
225
kind,
226
226
vis_span,
@@ -562,7 +562,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
562
562
}
563
563
564
564
let item = hir:: Item {
565
- def_id : hir:: OwnerId { def_id : new_id } ,
565
+ owner_id : hir:: OwnerId { def_id : new_id } ,
566
566
ident : this. lower_ident ( ident) ,
567
567
kind,
568
568
vis_span,
@@ -640,7 +640,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
640
640
}
641
641
642
642
let item = hir:: Item {
643
- def_id : hir:: OwnerId { def_id : new_hir_id } ,
643
+ owner_id : hir:: OwnerId { def_id : new_hir_id } ,
644
644
ident : this. lower_ident ( ident) ,
645
645
kind,
646
646
vis_span,
@@ -660,10 +660,10 @@ impl<'hir> LoweringContext<'_, 'hir> {
660
660
661
661
fn lower_foreign_item ( & mut self , i : & ForeignItem ) -> & ' hir hir:: ForeignItem < ' hir > {
662
662
let hir_id = self . lower_node_id ( i. id ) ;
663
- let def_id = hir_id. expect_owner ( ) ;
663
+ let owner_id = hir_id. expect_owner ( ) ;
664
664
self . lower_attrs ( hir_id, & i. attrs ) ;
665
665
let item = hir:: ForeignItem {
666
- def_id ,
666
+ owner_id ,
667
667
ident : self . lower_ident ( i. ident ) ,
668
668
kind : match i. kind {
669
669
ForeignItemKind :: Fn ( box Fn { ref sig, ref generics, .. } ) => {
@@ -702,7 +702,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
702
702
703
703
fn lower_foreign_item_ref ( & mut self , i : & ForeignItem ) -> hir:: ForeignItemRef {
704
704
hir:: ForeignItemRef {
705
- id : hir:: ForeignItemId { def_id : hir:: OwnerId { def_id : self . local_def_id ( i. id ) } } ,
705
+ id : hir:: ForeignItemId { owner_id : hir:: OwnerId { def_id : self . local_def_id ( i. id ) } } ,
706
706
ident : self . lower_ident ( i. ident ) ,
707
707
span : self . lower_span ( i. span ) ,
708
708
}
@@ -845,7 +845,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
845
845
846
846
self . lower_attrs ( hir_id, & i. attrs ) ;
847
847
let item = hir:: TraitItem {
848
- def_id : trait_item_def_id,
848
+ owner_id : trait_item_def_id,
849
849
ident : self . lower_ident ( i. ident ) ,
850
850
generics,
851
851
kind,
@@ -864,7 +864,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
864
864
}
865
865
AssocItemKind :: MacCall ( ..) => unimplemented ! ( ) ,
866
866
} ;
867
- let id = hir:: TraitItemId { def_id : hir:: OwnerId { def_id : self . local_def_id ( i. id ) } } ;
867
+ let id = hir:: TraitItemId { owner_id : hir:: OwnerId { def_id : self . local_def_id ( i. id ) } } ;
868
868
hir:: TraitItemRef {
869
869
id,
870
870
ident : self . lower_ident ( i. ident ) ,
@@ -931,7 +931,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
931
931
let hir_id = self . lower_node_id ( i. id ) ;
932
932
self . lower_attrs ( hir_id, & i. attrs ) ;
933
933
let item = hir:: ImplItem {
934
- def_id : hir_id. expect_owner ( ) ,
934
+ owner_id : hir_id. expect_owner ( ) ,
935
935
ident : self . lower_ident ( i. ident ) ,
936
936
generics,
937
937
kind,
@@ -944,7 +944,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
944
944
945
945
fn lower_impl_item_ref ( & mut self , i : & AssocItem ) -> hir:: ImplItemRef {
946
946
hir:: ImplItemRef {
947
- id : hir:: ImplItemId { def_id : hir:: OwnerId { def_id : self . local_def_id ( i. id ) } } ,
947
+ id : hir:: ImplItemId { owner_id : hir:: OwnerId { def_id : self . local_def_id ( i. id ) } } ,
948
948
ident : self . lower_ident ( i. ident ) ,
949
949
span : self . lower_span ( i. span ) ,
950
950
kind : match & i. kind {
0 commit comments