]> 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 ce3360787136a099ed5a38adcb0544323bf8ffc8..09a2e8ecd876d4c5d074873068896c944a57f75a 100644 (file)
@@ -8,13 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(dynamic_lib)]
+#![feature(rustc_private)]
 
 // 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)]
 
-use std::dynamic_lib::DynamicLibrary;
+extern crate rustc_back;
+
+use rustc_back::dynamic_lib::DynamicLibrary;
 
 #[no_mangle]
 pub fn foo() { bar(); }