diff options
| author | bors <bors@rust-lang.org> | 2021-12-12 17:28:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-12 17:28:52 +0000 |
| commit | 6bda5b331cfe7e04e1fe348c58a928fc2b650f4f (patch) | |
| tree | fa337d4fa5d7143dfe8fc6aed1b3c77fd287af74 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 753e569c9c2a4e3ef394ef7abd0802bf57f66bce (diff) | |
| parent | 923f939791a08d3f58566b0fc755381de031f43e (diff) | |
| download | rust-6bda5b331cfe7e04e1fe348c58a928fc2b650f4f.tar.gz rust-6bda5b331cfe7e04e1fe348c58a928fc2b650f4f.zip | |
Auto merge of #90716 - euclio:libloading, r=cjgillot
replace dynamic library module with libloading This PR deletes the `rustc_metadata::dynamic_lib` module in favor of the popular and better tested [`libloading` crate](https://github.com/nagisa/rust_libloading/). We don't benefit from `libloading`'s symbol lifetimes since we end up leaking the loaded library in all cases, but the call-sites look much nicer by improving error handling and abstracting away some transmutes. We also can remove `rustc_metadata`'s direct dependencies on `libc` and `winapi`. This PR also adds an exception for `libloading` (and its license) to tidy, so this will need sign-off from the compiler team.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
