about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorjumbatm <jumbatm@gmail.com>2020-06-19 18:14:54 +1000
committerjumbatm <30644300+jumbatm@users.noreply.github.com>2020-06-20 16:54:32 +1000
commit6b74e3cbb90526c8589f0e7c3ed47dc68f8d22ed (patch)
treeeedaf754f64c435b7a8814e1e898854da169af77 /src/libcore
parenta540b1b38dc2a28c11e481f95f43daebb52493d3 (diff)
Add ClashingExternDecl lint.
This lint checks that all declarations for extern fns of the same name
are declared with the same types.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/lib.rs3
1 files changed, 3 insertions, 0 deletions
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;