diff options
| author | jumbatm <jumbatm@gmail.com> | 2020-06-19 18:14:54 +1000 |
|---|---|---|
| committer | jumbatm <30644300+jumbatm@users.noreply.github.com> | 2020-06-20 16:54:32 +1000 |
| commit | 6b74e3cbb90526c8589f0e7c3ed47dc68f8d22ed (patch) | |
| tree | eedaf754f64c435b7a8814e1e898854da169af77 /src/libcore | |
| parent | a540b1b38dc2a28c11e481f95f43daebb52493d3 (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.rs | 3 |
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; |
