]> git.lizzy.rs Git - rust.git/blobdiff - src/test/auxiliary/linkage-visibility.rs
std: Clean out deprecated APIs
[rust.git] / src / test / auxiliary / linkage-visibility.rs
index 6cc2d427c25dcc6a41cdb3362e94147ad42a483c..09a2e8ecd876d4c5d074873068896c944a57f75a 100644 (file)
@@ -8,9 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(std_misc)]
+#![feature(rustc_private)]
 
-use std::dynamic_lib::DynamicLibrary;
+// We're testing linkage visibility; the compiler warns us, but we want to
+// do the runtime check that these functions aren't exported.
+#![allow(private_no_mangle_fns)]
+
+extern crate rustc_back;
+
+use rustc_back::dynamic_lib::DynamicLibrary;
 
 #[no_mangle]
 pub fn foo() { bar(); }
@@ -25,6 +31,7 @@ fn bar2() {
 #[no_mangle]
 fn bar() { }
 
+#[allow(dead_code)]
 #[no_mangle]
 fn baz() { }