mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 16:37:36 +00:00

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.
28 lines
536 B
Rust
28 lines
536 B
Rust
#![feature(decl_macro)]
|
|
#![feature(generic_nonzero)]
|
|
#![feature(lazy_cell)]
|
|
#![feature(let_chains)]
|
|
#![feature(thread_spawn_unchecked)]
|
|
#![feature(try_blocks)]
|
|
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
|
|
mod callbacks;
|
|
mod errors;
|
|
pub mod interface;
|
|
mod passes;
|
|
mod proc_macro_decls;
|
|
mod queries;
|
|
pub mod util;
|
|
|
|
pub use callbacks::setup_callbacks;
|
|
pub use interface::{run_compiler, Config};
|
|
pub use passes::DEFAULT_QUERY_PROVIDERS;
|
|
pub use queries::Queries;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|