mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00

Fluent, with all the icu4x it brings in, takes quite some time to compile. `fluent_messages!` is only needed in further downstream rustc crates, but is blocking more upstream crates like `rustc_index`. By splitting it out, we allow `rustc_macros` to be compiled earlier, which speeds up `x check compiler` by about 5 seconds (and even more after the needless dependency on `serde_json` is removed from `rustc_data_structures`).
35 lines
824 B
Rust
35 lines
824 B
Rust
#![feature(box_patterns)]
|
|
#![feature(decl_macro)]
|
|
#![feature(internal_output_capture)]
|
|
#![feature(thread_spawn_unchecked)]
|
|
#![feature(lazy_cell)]
|
|
#![feature(try_blocks)]
|
|
#![recursion_limit = "256"]
|
|
#![allow(rustc::potential_query_instability)]
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
|
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
|
|
use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
|
|
use rustc_fluent_macro::fluent_messages;
|
|
|
|
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_EXTERN_QUERY_PROVIDERS, DEFAULT_QUERY_PROVIDERS};
|
|
pub use queries::Queries;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
fluent_messages! { "../messages.ftl" }
|