about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-11 19:27:08 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-11 19:45:18 -0800
commit6e1f9ad1f1b442d397bc120ed6916c4ddef2f4ae (patch)
treefcbbd58ab4689d6e73502b86c5ba3c1b1f9e8a4d /src/libstd
parent09869cd0560c47f13c9740c121eac1a051b34bf4 (diff)
downloadrust-6e1f9ad1f1b442d397bc120ed6916c4ddef2f4ae.tar.gz
rust-6e1f9ad1f1b442d397bc120ed6916c4ddef2f4ae.zip
rustc: Don't allow empty link_name when nolink attribute is present
Closes #1326
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/freebsd_os.rs1
-rw-r--r--src/libstd/linux_os.rs1
-rw-r--r--src/libstd/macos_os.rs1
-rw-r--r--src/libstd/win32_os.rs1
4 files changed, 0 insertions, 4 deletions
diff --git a/src/libstd/freebsd_os.rs b/src/libstd/freebsd_os.rs
index 4fecf418213..596db37bea9 100644
--- a/src/libstd/freebsd_os.rs
+++ b/src/libstd/freebsd_os.rs
@@ -24,7 +24,6 @@ export fsync_fd;
 // FIXME Somehow merge stuff duplicated here and macosx_os.rs. Made difficult
 // by https://github.com/graydon/rust/issues#issue/268
 
-#[link_name = ""]               // FIXME remove after #[nolink] is snapshotted
 #[nolink]
 #[abi = "cdecl"]
 native mod libc {
diff --git a/src/libstd/linux_os.rs b/src/libstd/linux_os.rs
index 7e7f0407f77..965d8f1eaff 100644
--- a/src/libstd/linux_os.rs
+++ b/src/libstd/linux_os.rs
@@ -24,7 +24,6 @@ export fsync_fd;
 // FIXME Somehow merge stuff duplicated here and macosx_os.rs. Made difficult
 // by https://github.com/graydon/rust/issues#issue/268
 
-#[link_name = ""]               // FIXME remove after #[nolink] is snapshotted
 #[nolink]
 #[abi = "cdecl"]
 native mod libc {
diff --git a/src/libstd/macos_os.rs b/src/libstd/macos_os.rs
index 35c7b19bb3d..9cca6fe77e1 100644
--- a/src/libstd/macos_os.rs
+++ b/src/libstd/macos_os.rs
@@ -18,7 +18,6 @@ export fsync_fd;
 // FIXME Refactor into unix_os module or some such. Doesn't
 // seem to work right now.
 
-#[link_name = ""] // FIXME: Remove after snapshotting
 #[nolink]
 #[abi = "cdecl"]
 native mod libc {
diff --git a/src/libstd/win32_os.rs b/src/libstd/win32_os.rs
index 0996a87737a..ff45648cdba 100644
--- a/src/libstd/win32_os.rs
+++ b/src/libstd/win32_os.rs
@@ -2,7 +2,6 @@ import core::option;
 import core::ctypes::*;
 
 #[abi = "cdecl"]
-#[link_name = ""]               // FIXME remove after #[nolink] is snapshotted
 #[nolink]
 native mod libc {
     fn read(fd: fd_t, buf: *u8, count: size_t) -> ssize_t;