about summary refs log tree commit diff
path: root/src/libstd/sys/unix/args.rs
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/libstd/sys/unix/args.rs
parenta540b1b38dc2a28c11e481f95f43daebb52493d3 (diff)
downloadrust-6b74e3cbb90526c8589f0e7c3ed47dc68f8d22ed.tar.gz
rust-6b74e3cbb90526c8589f0e7c3ed47dc68f8d22ed.zip
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/libstd/sys/unix/args.rs')
-rw-r--r--src/libstd/sys/unix/args.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/args.rs b/src/libstd/sys/unix/args.rs
index 4c3e8542d57..1d1cdda1257 100644
--- a/src/libstd/sys/unix/args.rs
+++ b/src/libstd/sys/unix/args.rs
@@ -205,6 +205,7 @@ mod imp {
         #[cfg(target_arch = "aarch64")]
         extern "C" {
             fn objc_msgSend(obj: NsId, sel: Sel) -> NsId;
+            #[cfg_attr(not(bootstrap), allow(clashing_extern_decl))]
             #[link_name = "objc_msgSend"]
             fn objc_msgSend_ul(obj: NsId, sel: Sel, i: libc::c_ulong) -> NsId;
         }
@@ -212,6 +213,7 @@ mod imp {
         #[cfg(not(target_arch = "aarch64"))]
         extern "C" {
             fn objc_msgSend(obj: NsId, sel: Sel, ...) -> NsId;
+            #[cfg_attr(not(bootstrap), allow(clashing_extern_decl))]
             #[link_name = "objc_msgSend"]
             fn objc_msgSend_ul(obj: NsId, sel: Sel, ...) -> NsId;
         }