From 6108eff0affb21aa2fbeedc34d7ac293f46470c7 Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 29 Sep 2022 15:41:54 +0200 Subject: [PATCH] Deny unwrap usage in proc macros --- prusti-contracts/prusti-specs/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prusti-contracts/prusti-specs/src/lib.rs b/prusti-contracts/prusti-specs/src/lib.rs index 117e48dcdd8..4a5d3e11c10 100644 --- a/prusti-contracts/prusti-specs/src/lib.rs +++ b/prusti-contracts/prusti-specs/src/lib.rs @@ -5,6 +5,8 @@ #![feature(proc_macro_span)] #![feature(if_let_guard)] #![feature(assert_matches)] +// Panics in procedural macros are really hard to debug! +#![deny(clippy::unwrap_used)] // This Clippy chcek seems to be always wrong. #![allow(clippy::iter_with_drain)]