瀏覽代碼

Allow internal_features lint

Gary Guo 1 年之前
父節點
當前提交
e50b916b7f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/lib.rs

+ 4 - 0
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)