rust/compiler/rustc_interface/src
bors 6bda5b331c 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.
2021-12-12 17:28:52 +00:00
..
callbacks.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
interface.rs Made temps-dir an unstable option. 2021-11-07 09:32:05 +01:00
lib.rs Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
passes.rs Improve 'cannot contain emoji' error. 2021-12-03 01:20:25 +01:00
proc_macro_decls.rs Avoid more invocations of hir_crate query. 2021-09-29 23:16:47 +02:00
queries.rs Fix clippy lints 2021-10-01 23:17:19 +02:00
tests.rs Stabilize -Z emit-future-incompat as --json future-incompat 2021-12-04 14:34:20 -05:00
util.rs replace dynamic library module with libloading 2021-12-06 12:03:47 -05:00