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_plugin_impl | |
| parent | 0b958790b336738540d027d645718713849638d7 (diff) | |
| download | rust-97983af76a3b7c180704a33246d91e9d98d2e42a.tar.gz rust-97983af76a3b7c180704a33246d91e9d98d2e42a.zip | |
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_plugin_impl')
| -rw-r--r-- | src/librustc_plugin_impl/load.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_plugin_impl/load.rs b/src/librustc_plugin_impl/load.rs index f41bc44d177..f48d2b6c8b5 100644 --- a/src/librustc_plugin_impl/load.rs +++ b/src/librustc_plugin_impl/load.rs @@ -76,7 +76,7 @@ fn dylink_registrar( // Make sure the path contains a / or the linker will search for it. let path = env::current_dir().unwrap().join(&path); - let lib = match DynamicLibrary::open(Some(&path)) { + let lib = match DynamicLibrary::open(&path) { Ok(lib) => lib, // this is fatal: there are almost certainly macros we need // inside this crate, so continue would spew "macro undefined" |
