about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-01-28 23:21:56 -0800
committerRicho Healey <richo@psych0tik.net>2015-01-30 02:57:45 -0800
commitff25fd660ac7240f4c8379e74108a462a9aaba77 (patch)
tree0f29789705a2502762788fe4d580a4f9b6c42a9c /src/libstd
parentd2ab7d3ea8ff80089c9f5d8a3db37de0000eb246 (diff)
downloadrust-ff25fd660ac7240f4c8379e74108a462a9aaba77.tar.gz
rust-ff25fd660ac7240f4c8379e74108a462a9aaba77.zip
lint: Add test for no_mangle
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rt/unwind.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs
index dd4d3bbc5fc..757aecaaaff 100644
--- a/src/libstd/rt/unwind.rs
+++ b/src/libstd/rt/unwind.rs
@@ -254,7 +254,6 @@ pub mod eabi {
     }
 
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
     pub extern "C" fn rust_eh_personality_catch(
         _version: c_int,
         actions: uw::_Unwind_Action,
@@ -293,7 +292,7 @@ pub mod eabi {
 
     #[lang="eh_personality"]
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
+    #[allow(private_no_mangle_fns)]
     pub extern "C" fn rust_eh_personality(
         version: c_int,
         actions: uw::_Unwind_Action,
@@ -309,7 +308,6 @@ pub mod eabi {
     }
 
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
     pub extern "C" fn rust_eh_personality_catch(
         _version: c_int,
         actions: uw::_Unwind_Action,
@@ -348,7 +346,7 @@ pub mod eabi {
 
     #[lang="eh_personality"]
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
+    #[allow(private_no_mangle_fns)]
     extern "C" fn rust_eh_personality(
         state: uw::_Unwind_State,
         ue_header: *mut uw::_Unwind_Exception,
@@ -361,7 +359,6 @@ pub mod eabi {
     }
 
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
     pub extern "C" fn rust_eh_personality_catch(
         state: uw::_Unwind_State,
         _ue_header: *mut uw::_Unwind_Exception,
@@ -439,7 +436,7 @@ pub mod eabi {
 
     #[lang="eh_personality"]
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
+    #[allow(private_no_mangle_fns)]
     extern "C" fn rust_eh_personality(
         exceptionRecord: *mut EXCEPTION_RECORD,
         establisherFrame: *mut c_void,
@@ -454,7 +451,6 @@ pub mod eabi {
     }
 
     #[no_mangle] // referenced from rust_try.ll
-    #[allow(unexported_no_mangle)]
     pub extern "C" fn rust_eh_personality_catch(
         exceptionRecord: *mut EXCEPTION_RECORD,
         establisherFrame: *mut c_void,