From 2dbc0ee00a3d09c342d9c94e8aeed7c86024b3d5 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 5 May 2024 13:45:14 +0200 Subject: [PATCH 1/4] ci: allow unexpected-cfgs warnings --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 1b3e6fc40..9cb2e513d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(unexpected_cfgs)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![doc(test( no_crate_inject, From 5ce99ed88585472516e96cba5ebc96025fab3857 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 5 May 2024 13:48:54 +0200 Subject: [PATCH 2/4] Allow unknown-lints for MSRV --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9cb2e513d..d1d631f07 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![allow(unexpected_cfgs)] +#![allow(unexpected_cfgs, unknown_lints)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![doc(test( no_crate_inject, From c9c544a42b7de0be7552438e1c3f1460c27f55f2 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 5 May 2024 13:51:52 +0200 Subject: [PATCH 3/4] Try reordering attributes --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d1d631f07..c92e4fe0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ -#![allow(unexpected_cfgs, unknown_lints)] +#![allow(unknown_lints)] +#![allow(unexpected_cfgs)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![doc(test( no_crate_inject, From 51509e29c0f664cf3d34b594d472d8ea07d514d8 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 5 May 2024 14:09:45 +0200 Subject: [PATCH 4/4] Try with both allows on one line --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c92e4fe0f..4dd118007 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ -#![allow(unknown_lints)] -#![allow(unexpected_cfgs)] +#![allow(unknown_lints, unexpected_cfgs)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![doc(test( no_crate_inject,