From e50b916b7f0f3b384bff09ae0f46cb6868759a76 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Sat, 5 Aug 2023 16:04:53 +0100 Subject: [PATCH] Allow internal_features lint --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d36d4a3..97cb357 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,10 @@ #![doc = include_str!("../README.md")] #![feature(c_unwind)] #![feature(naked_functions)] +// lang_items is an internal feature. `internal_features` lint is added recently +// so also allow unknown lints to prevent warning in older nightly versions. +#![allow(unknown_lints)] +#![allow(internal_features)] #![cfg_attr( any(feature = "personality", feature = "personality-dummy"), feature(lang_items)