diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-04-24 18:31:42 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-04-25 10:55:20 -0400 |
| commit | 97983af76a3b7c180704a33246d91e9d98d2e42a (patch) | |
| tree | 439975938732a501704fdf2dd96e4adc8a675af6 /src/librustc_interface | |
| parent | 0b958790b336738540d027d645718713849638d7 (diff) | |
Remove support for self-opening
This was only used for linkage test cases, which is already covered by the run-make-fulldeps/symbol-visibility test -- which fairly extensively makes sure we're correctly exporting the right symbols at the right visibility (for various Rust crate types).
Diffstat (limited to 'src/librustc_interface')
| -rw-r--r-- | src/librustc_interface/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_interface/util.rs b/src/librustc_interface/util.rs index 02bf1aded3b..8439ac6c9e5 100644 --- a/src/librustc_interface/util.rs +++ b/src/librustc_interface/util.rs @@ -205,7 +205,7 @@ pub fn spawn_thread_pool<F: FnOnce() -> R + Send, R: Send>( } fn load_backend_from_dylib(path: &Path) -> fn() -> Box<dyn CodegenBackend> { - let lib = DynamicLibrary::open(Some(path)).unwrap_or_else(|err| { + let lib = DynamicLibrary::open(path).unwrap_or_else(|err| { let err = format!("couldn't load codegen backend {:?}: {:?}", path, err); early_error(ErrorOutputType::default(), &err); }); |
