From 6b74e3cbb90526c8589f0e7c3ed47dc68f8d22ed Mon Sep 17 00:00:00 2001 From: jumbatm Date: Fri, 19 Jun 2020 18:14:54 +1000 Subject: Add ClashingExternDecl lint. This lint checks that all declarations for extern fns of the same name are declared with the same types. --- src/libcore/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libcore') diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index fe05e914e6d..0115c4df2fd 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -277,6 +277,9 @@ pub mod primitive; // crate uses the this crate as its libcore. #[path = "../stdarch/crates/core_arch/src/mod.rs"] #[allow(missing_docs, missing_debug_implementations, dead_code, unused_imports)] +// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_decl is +// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet. +#[cfg_attr(not(bootstrap), allow(clashing_extern_decl))] #[unstable(feature = "stdsimd", issue = "48556")] mod core_arch; -- cgit 1.4.1-3-g733a5