about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-12-18 13:01:23 -0800
committerAlex Crichton <alex@alexcrichton.com>2018-12-18 13:02:14 -0800
commitc383d389f0a8f7b7bd8d8e58f6b10a2a2b4f7fa2 (patch)
tree1936e4beb9e4ea3dcb961bf9bb87cad60500d2d6
parentbd18a9295cd1bd19daac3369f29776a8f4272016 (diff)
Avoid using open_global_now
-rw-r--r--src/librustc_driver/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 41c9b22afe0..56a3a0efcd8 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -226,7 +226,7 @@ fn load_backend_from_dylib(path: &Path) -> fn() -> Box<dyn CodegenBackend> {
     // available for future dynamic libraries opened. This is currently used by
     // loading LLVM and then making its symbols available for other dynamic
     // libraries.
-    let lib = DynamicLibrary::open_global_now(path).unwrap_or_else(|err| {
+    let lib = DynamicLibrary::open(Some(path)).unwrap_or_else(|err| {
         let err = format!("couldn't load codegen backend {:?}: {:?}", path, err);
         early_error(ErrorOutputType::default(), &err);
     });