From 7488682db4cf259e0bb0c886e13301c32a2eeaa2 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Fri, 2 Jun 2017 00:01:35 -0400 Subject: Don't rely on autogenerated names This fixes all of the private-names warnings emitted by compiling fiat-crypto with https://github.com/coq/coq/pull/268 (minus the ones in coqprime, which I didn't touch). --- src/Util/Relations.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Util/Relations.v') diff --git a/src/Util/Relations.v b/src/Util/Relations.v index d6b63b38f..8859a3bcc 100644 --- a/src/Util/Relations.v +++ b/src/Util/Relations.v @@ -38,7 +38,8 @@ Global Instance Equivalence_and {A B RA RB} {Equivalence_RB:@Equivalence B RB} : Equivalence (fun ab AB => RA (fst ab) (fst AB) /\ RB (snd ab) (snd AB)). Proof. - destruct Equivalence_RA as [], Equivalence_RB as []; cbv in *|-. + do 2 match goal with H : Equivalence _ |- _ => destruct H end; + cbv in *|-. repeat match goal with | _ => intro | _ => split -- cgit v1.2.3