@@ -46,8 +46,8 @@ fn item_might_be_inlined(item: &hir::Item) -> bool {
4646 }
4747
4848 match item. node {
49- hir:: ItemImpl ( _, _, ref generics, _ , _ , _ ) |
50- hir:: ItemFn ( _ , _ , _ , _ , ref generics, _) => {
49+ hir:: ItemImpl ( _, _, ref generics, .. ) |
50+ hir:: ItemFn ( .. , ref generics, _) => {
5151 generics_require_inlining ( generics)
5252 }
5353 _ => false ,
@@ -187,7 +187,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
187187 // does too.
188188 let impl_node_id = self . tcx . map . as_local_node_id ( impl_did) . unwrap ( ) ;
189189 match self . tcx . map . expect_item ( impl_node_id) . node {
190- hir:: ItemImpl ( _, _, ref generics, _ , _ , _ ) => {
190+ hir:: ItemImpl ( _, _, ref generics, .. ) => {
191191 generics_require_inlining ( generics)
192192 }
193193 _ => false
@@ -226,7 +226,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
226226 // If we are building an executable, only explicitly extern
227227 // types need to be exported.
228228 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 {
230230 abi != Abi :: Rust
231231 } else {
232232 false
@@ -248,7 +248,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
248248 match * node {
249249 ast_map:: NodeItem ( item) => {
250250 match item. node {
251- hir:: ItemFn ( _ , _ , _ , _ , _ , ref search_block) => {
251+ hir:: ItemFn ( .. , ref search_block) => {
252252 if item_might_be_inlined ( & item) {
253253 intravisit:: walk_block ( self , & search_block)
254254 }
@@ -265,7 +265,7 @@ impl<'a, 'tcx> ReachableContext<'a, 'tcx> {
265265 // inherently and their children are already in the
266266 // worklist, as determined by the privacy pass
267267 hir:: ItemExternCrate ( _) | hir:: ItemUse ( _) |
268- hir:: ItemTy ( ..) | hir:: ItemStatic ( _ , _ , _ ) |
268+ hir:: ItemTy ( ..) | hir:: ItemStatic ( .. ) |
269269 hir:: ItemMod ( ..) | hir:: ItemForeignMod ( ..) |
270270 hir:: ItemImpl ( ..) | hir:: ItemTrait ( ..) |
271271 hir:: ItemStruct ( ..) | hir:: ItemEnum ( ..) |
@@ -329,7 +329,7 @@ struct CollectPrivateImplItemsVisitor<'a> {
329329impl < ' a , ' v > Visitor < ' v > for CollectPrivateImplItemsVisitor < ' a > {
330330 fn visit_item ( & mut self , item : & hir:: Item ) {
331331 // 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 {
333333 if !self . access_levels . is_reachable ( item. id ) {
334334 for impl_item in impl_items {
335335 self . worklist . push ( impl_item. id ) ;
0 commit comments