From: Sumera Priyadarsini Date: Tue, 13 Oct 2020 10:01:33 +0000 (+0530) Subject: rust: fix build warning for unknown lint X-Git-Tag: suricata-4.1.10~21 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5487%2Fhead;p=thirdparty%2Fsuricata.git 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. --- 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;