Unify dylib loading between proc macros and codegen backends

As bonus this makes the errors when failing to load a proc macro more
informative to match the backend loading errors. In addition it makes it
slightly easier to patch rustc to work on platforms that don't support
dynamic linking like wasm.
This commit is contained in:
bjorn3 2024-02-21 11:17:07 +00:00
parent 0987e41d1c
commit f25c90a83f
9 changed files with 60 additions and 45 deletions

View file

@ -1,5 +1,4 @@
#![feature(decl_macro)]
#![feature(error_iter)]
#![feature(generic_nonzero)]
#![feature(lazy_cell)]
#![feature(let_chains)]