From b920e7078c6c5da11c4c7a2b357ba92a2b8424d8 Mon Sep 17 00:00:00 2001
From: Tej Chajed <tchajed@mit.edu>
Date: Sat, 21 Nov 2020 09:27:42 -0600
Subject: [PATCH] Replace unused pattern variables with underscore

Addresses new unused-pattern-matching-variable warning on Coq master.
---
 theories/coPset.v | 2 +-
 theories/hlist.v  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/theories/coPset.v b/theories/coPset.v
index 1a46079b..f6de342d 100644
--- a/theories/coPset.v
+++ b/theories/coPset.v
@@ -26,7 +26,7 @@ Fixpoint coPset_wf (t : coPset_raw) : bool :=
   | coPLeaf _ => true
   | coPNode true (coPLeaf true) (coPLeaf true) => false
   | coPNode false (coPLeaf false) (coPLeaf false) => false
-  | coPNode b l r => coPset_wf l && coPset_wf r
+  | coPNode _ l r => coPset_wf l && coPset_wf r
   end.
 Arguments coPset_wf !_ / : simpl nomatch, assert.
 
diff --git a/theories/hlist.v b/theories/hlist.v
index 86dbd457..d7f0ad92 100644
--- a/theories/hlist.v
+++ b/theories/hlist.v
@@ -22,12 +22,12 @@ Definition htail {A As} (xs : hlist (tcons A As)) : hlist As :=
 Fixpoint hheads {As Bs} : hlist (tapp As Bs) → hlist As :=
   match As with
   | tnil => λ _, hnil
-  | tcons A As => λ xs, hcons (hhead xs) (hheads (htail xs))
+  | tcons _ _ => λ xs, hcons (hhead xs) (hheads (htail xs))
   end.
 Fixpoint htails {As Bs} : hlist (tapp As Bs) → hlist Bs :=
   match As with
   | tnil => id
-  | tcons A As => λ xs, htails (htail xs)
+  | tcons _ _ => λ xs, htails (htail xs)
   end.
 
 Fixpoint himpl (As : tlist) (B : Type) : Type :=
-- 
GitLab