about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2022-01-18 14:02:42 -0800
committerEric Holk <ericholk@microsoft.com>2022-01-18 14:25:31 -0800
commitd840d0c62e3853f9f3569315ffff666c4452718a (patch)
tree72b16bb7f418cd4e077a7cfe842ef6e39b8eb557
parente0a5370ef00938db0e76f6d7845befb51be629ff (diff)
downloadrust-d840d0c62e3853f9f3569315ffff666c4452718a.tar.gz
rust-d840d0c62e3853f9f3569315ffff666c4452718a.zip
Use .. patterns in cfg_build.rs
-rw-r--r--compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs60
1 files changed, 30 insertions, 30 deletions
diff --git a/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs b/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs
index d7305957f94..fc150e09484 100644
--- a/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs
+++ b/compiler/rustc_typeck/src/check/generator_interior/drop_ranges/cfg_build.rs
@@ -163,36 +163,36 @@ impl<'a, 'tcx> DropRangeVisitor<'a, 'tcx> {
             //
             // Some of these may be interesting in the future
             ExprKind::Path(..)
-            | ExprKind::Box(_)
-            | ExprKind::ConstBlock(_)
-            | ExprKind::Array(_)
-            | ExprKind::Call(_, _)
-            | ExprKind::MethodCall(_, _, _, _)
-            | ExprKind::Tup(_)
-            | ExprKind::Binary(_, _, _)
-            | ExprKind::Unary(_, _)
-            | ExprKind::Lit(_)
-            | ExprKind::Cast(_, _)
-            | ExprKind::Type(_, _)
-            | ExprKind::DropTemps(_)
-            | ExprKind::Let(_, _, _)
-            | ExprKind::If(_, _, _)
-            | ExprKind::Loop(_, _, _, _)
-            | ExprKind::Match(_, _, _)
-            | ExprKind::Closure(_, _, _, _, _)
-            | ExprKind::Block(_, _)
-            | ExprKind::Assign(_, _, _)
-            | ExprKind::AssignOp(_, _, _)
-            | ExprKind::Index(_, _)
-            | ExprKind::AddrOf(_, _, _)
-            | ExprKind::Break(_, _)
-            | ExprKind::Continue(_)
-            | ExprKind::Ret(_)
-            | ExprKind::InlineAsm(_)
-            | ExprKind::LlvmInlineAsm(_)
-            | ExprKind::Struct(_, _, _)
-            | ExprKind::Repeat(_, _)
-            | ExprKind::Yield(_, _)
+            | ExprKind::Box(..)
+            | ExprKind::ConstBlock(..)
+            | ExprKind::Array(..)
+            | ExprKind::Call(..)
+            | ExprKind::MethodCall(..)
+            | ExprKind::Tup(..)
+            | ExprKind::Binary(..)
+            | ExprKind::Unary(..)
+            | ExprKind::Lit(..)
+            | ExprKind::Cast(..)
+            | ExprKind::Type(..)
+            | ExprKind::DropTemps(..)
+            | ExprKind::Let(..)
+            | ExprKind::If(..)
+            | ExprKind::Loop(..)
+            | ExprKind::Match(..)
+            | ExprKind::Closure(..)
+            | ExprKind::Block(..)
+            | ExprKind::Assign(..)
+            | ExprKind::AssignOp(..)
+            | ExprKind::Index(..)
+            | ExprKind::AddrOf(..)
+            | ExprKind::Break(..)
+            | ExprKind::Continue(..)
+            | ExprKind::Ret(..)
+            | ExprKind::InlineAsm(..)
+            | ExprKind::LlvmInlineAsm(..)
+            | ExprKind::Struct(..)
+            | ExprKind::Repeat(..)
+            | ExprKind::Yield(..)
             | ExprKind::Err => (),
         }
     }