@@ -1073,7 +1073,7 @@ impl EncodeContext<'tcx> {
1073
1073
ctor: None ,
1074
1074
} ) , adt_def. repr)
1075
1075
}
1076
- hir:: ItemKind :: Impl ( _ , _ , defaultness, ..) => {
1076
+ hir:: ItemKind :: Impl { defaultness, .. } => {
1077
1077
let trait_ref = self . tcx. impl_trait_ref( def_id) ;
1078
1078
let polarity = self . tcx. impl_polarity( def_id) ;
1079
1079
let parent = if let Some ( trait_ref) = trait_ref {
@@ -1149,7 +1149,7 @@ impl EncodeContext<'tcx> {
1149
1149
} )
1150
1150
)
1151
1151
}
1152
- hir:: ItemKind :: Impl ( .. ) | hir:: ItemKind :: Trait ( ..) => {
1152
+ hir:: ItemKind :: Impl { .. } | hir:: ItemKind :: Trait ( ..) => {
1153
1153
let associated_item_def_ids = self . tcx . associated_item_def_ids ( def_id) ;
1154
1154
record ! ( self . per_def. children[ def_id] <-
1155
1155
associated_item_def_ids. iter( ) . map( |& def_id| {
@@ -1172,13 +1172,13 @@ impl EncodeContext<'tcx> {
1172
1172
| hir:: ItemKind :: Enum ( ..)
1173
1173
| hir:: ItemKind :: Struct ( ..)
1174
1174
| hir:: ItemKind :: Union ( ..)
1175
- | hir:: ItemKind :: Impl ( .. ) => self . encode_item_type ( def_id) ,
1175
+ | hir:: ItemKind :: Impl { .. } => self . encode_item_type ( def_id) ,
1176
1176
_ => { }
1177
1177
}
1178
1178
if let hir:: ItemKind :: Fn ( ..) = item. kind {
1179
1179
record ! ( self . per_def. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
1180
1180
}
1181
- if let hir:: ItemKind :: Impl ( .. ) = item. kind {
1181
+ if let hir:: ItemKind :: Impl { .. } = item. kind {
1182
1182
if let Some ( trait_ref) = self . tcx . impl_trait_ref ( def_id) {
1183
1183
record ! ( self . per_def. impl_trait_ref[ def_id] <- trait_ref) ;
1184
1184
}
@@ -1199,7 +1199,7 @@ impl EncodeContext<'tcx> {
1199
1199
| hir:: ItemKind :: Enum ( ..)
1200
1200
| hir:: ItemKind :: Struct ( ..)
1201
1201
| hir:: ItemKind :: Union ( ..)
1202
- | hir:: ItemKind :: Impl ( .. )
1202
+ | hir:: ItemKind :: Impl { .. }
1203
1203
| hir:: ItemKind :: OpaqueTy ( ..)
1204
1204
| hir:: ItemKind :: Trait ( ..)
1205
1205
| hir:: ItemKind :: TraitAlias ( ..) => {
@@ -1645,7 +1645,7 @@ impl EncodeContext<'tcx> {
1645
1645
hir:: ItemKind :: Union ( ..) => {
1646
1646
self . encode_fields ( def_id) ;
1647
1647
}
1648
- hir:: ItemKind :: Impl ( .. ) => {
1648
+ hir:: ItemKind :: Impl { .. } => {
1649
1649
for & trait_item_def_id in self . tcx . associated_item_def_ids ( def_id) . iter ( ) {
1650
1650
self . encode_info_for_impl_item ( trait_item_def_id) ;
1651
1651
}
@@ -1666,7 +1666,7 @@ struct ImplVisitor<'tcx> {
1666
1666
1667
1667
impl < ' tcx , ' v > ItemLikeVisitor < ' v > for ImplVisitor < ' tcx > {
1668
1668
fn visit_item ( & mut self , item : & hir:: Item < ' _ > ) {
1669
- if let hir:: ItemKind :: Impl ( .. ) = item. kind {
1669
+ if let hir:: ItemKind :: Impl { .. } = item. kind {
1670
1670
let impl_id = self . tcx . hir ( ) . local_def_id ( item. hir_id ) ;
1671
1671
if let Some ( trait_ref) = self . tcx . impl_trait_ref ( impl_id) {
1672
1672
self . impls . entry ( trait_ref. def_id ) . or_default ( ) . push ( impl_id. index ) ;
0 commit comments