about summary refs log tree commit diff
path: root/compiler/rustc_fluent_macro/src
AgeCommit message (Collapse)AuthorLines
2023-11-26Add a useful comment.Nicholas Nethercote-0/+4
2023-11-26Avoid need for `{D,Subd}iagnosticMessage` imports.Nicholas Nethercote-19/+14
The `fluent_messages!` macro produces uses of `crate::{D,Subd}iagnosticMessage`, which means that every crate using the macro must have this import: ``` use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage}; ``` This commit changes the macro to instead use `rustc_errors::{D,Subd}iagnosticMessage`, which avoids the need for the imports.
2023-11-15Bump cfg(bootstrap)sMark Rousskov-3/+3
2023-10-08rustdoc: remove rust logo from non-Rust cratesMichael Howell-0/+3
2023-10-02Factor out common token generation in `fluent_messages`.Nicholas Nethercote-38/+20
The failure and success cases are similar enough that they can share code.
2023-05-26Fix diagnostics with errorsclubby789-12/+9
2023-05-26Validate fluent variable references with `debug_assertions`clubby789-3/+42
2023-04-18Add `rustc_fluent_macro` to decouple fluent from `rustc_macros`Nilstrieb-0/+400
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`).