From a5337d668c4976fed89551f94b03b2903f8f947c Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 27 Jul 2020 21:53:10 -0400 Subject: [PATCH] Use exhaustive match for assert --- src/bootstrap/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index a7add4cd559..144e146685f 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -576,7 +576,7 @@ impl<'a> Builder<'a> { Kind::Test | Kind::Doc | Kind::Build | Kind::Bench | Kind::Dist | Kind::Install => { assert_eq!(this.top_stage, 2) } - _ => {} + Kind::Check | Kind::Clippy | Kind::Fix | Kind::Run | Kind::Format => {} } }