]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_plugin/load.rs
std: Clean out deprecated APIs
[rust.git] / src / librustc_plugin / load.rs
index c2f8d092b08fdb972e9d2f0342fbc4bf200dcd22..a950198a4e4f79a772a08a779df264ed544eec40 100644 (file)
@@ -103,12 +103,11 @@ fn load_plugin(&mut self, span: Span, name: &str, args: Vec<P<ast::MetaItem>>) {
     }
 
     // Dynamically link a registrar function into the compiler process.
-    #[allow(deprecated)]
     fn dylink_registrar(&mut self,
                         span: Span,
                         path: PathBuf,
                         symbol: String) -> PluginRegistrarFun {
-        use std::dynamic_lib::DynamicLibrary;
+        use rustc_back::dynamic_lib::DynamicLibrary;
 
         // Make sure the path contains a / or the linker will search for it.
         let path = env::current_dir().unwrap().join(&path);