@@ -46,8 +46,8 @@ fn item_might_be_inlined(item: &hir::Item) -> bool {
46
46
}
47
47
48
48
match item. node {
49
- hir:: ItemImpl ( _, _, ref generics, _ , _ , _ ) |
50
- hir:: ItemFn ( _ , _ , _ , _ , ref generics, _) => {
49
+ hir:: ItemImpl ( _, _, ref generics, .. ) |
50
+ hir:: ItemFn ( .. , ref generics, _) => {
51
51
generics_require_inlining ( generics)
52
52
}
53
53
_ => false ,
@@ -187,7 +187,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
187
187
// does too.
188
188
let impl_node_id = self . tcx . map . as_local_node_id ( impl_did) . unwrap ( ) ;
189
189
match self . tcx . map . expect_item ( impl_node_id) . node {
190
- hir:: ItemImpl ( _, _, ref generics, _ , _ , _ ) => {
190
+ hir:: ItemImpl ( _, _, ref generics, .. ) => {
191
191
generics_require_inlining ( generics)
192
192
}
193
193
_ => false
@@ -226,7 +226,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
226
226
// If we are building an executable, only explicitly extern
227
227
// types need to be exported.
228
228
if let ast_map:: NodeItem ( item) = * node {
229
- let reachable = if let hir:: ItemFn ( _ , _ , _ , abi, _, _) = item. node {
229
+ let reachable = if let hir:: ItemFn ( .. , abi, _, _) = item. node {
230
230
abi != Abi :: Rust
231
231
} else {
232
232
false
@@ -248,7 +248,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
248
248
match * node {
249
249
ast_map:: NodeItem ( item) => {
250
250
match item. node {
251
- hir:: ItemFn ( _ , _ , _ , _ , _ , ref search_block) => {
251
+ hir:: ItemFn ( .. , ref search_block) => {
252
252
if item_might_be_inlined ( & item) {
253
253
intravisit:: walk_block ( self , & search_block)
254
254
}
@@ -265,7 +265,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
265
265
// inherently and their children are already in the
266
266
// worklist, as determined by the privacy pass
267
267
hir:: ItemExternCrate ( _) | hir:: ItemUse ( _) |
268
- hir:: ItemTy ( ..) | hir:: ItemStatic ( _ , _ , _ ) |
268
+ hir:: ItemTy ( ..) | hir:: ItemStatic ( .. ) |
269
269
hir:: ItemMod ( ..) | hir:: ItemForeignMod ( ..) |
270
270
hir:: ItemImpl ( ..) | hir:: ItemTrait ( ..) |
271
271
hir:: ItemStruct ( ..) | hir:: ItemEnum ( ..) |
@@ -329,7 +329,7 @@ struct CollectPrivateImplItemsVisitor<'a> {
329
329
impl < ' a , ' v > Visitor < ' v > for CollectPrivateImplItemsVisitor < ' a > {
330
330
fn visit_item ( & mut self , item : & hir:: Item ) {
331
331
// We need only trait impls here, not inherent impls, and only non-exported ones
332
- if let hir:: ItemImpl ( _ , _ , _ , Some ( _) , _, ref impl_items) = item. node {
332
+ if let hir:: ItemImpl ( .. , Some ( _) , _, ref impl_items) = item. node {
333
333
if !self . access_levels . is_reachable ( item. id ) {
334
334
for impl_item in impl_items {
335
335
self . worklist . push ( impl_item. id ) ;
0 commit comments