From 65040a29e787086880c2528c09370add6fe8e868 Mon Sep 17 00:00:00 2001 From: Sumera Priyadarsini Date: Tue, 13 Oct 2020 15:31:33 +0530 Subject: [PATCH] rust: fix build warning for unknown lint Builds for suricata with rustc 1.24.1 give the warning: warning: unknown lint: `ellipsis_inclusive_range_patterns` The builtin lint had been added to fix a deprecation warning for the `...` range patterns. Although rustc 1.24.1 is no longer the MSRV, rendering the lint unnecessary, removing it results in a strict error for rustc 1.47.x. Add relevant code to allow unknown lints. --- rust/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 7a967bee00..4966232768 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -15,7 +15,8 @@ * 02110-1301, USA. */ -#![allow(ellipsis_inclusive_range_patterns)] // TODO: Remove when MSRV is higher than 1.24 +#![allow(unknown_lints)] +#![allow(ellipsis_inclusive_range_patterns)] #![cfg_attr(feature = "strict", deny(warnings))] extern crate libc; -- 2.47.2