about summary refs log tree commit diff
path: root/compiler/rustc_fluent_macro
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-30Clean up `rustc_*/Cargo.toml`.Nicholas Nethercote-1/+3
- Sort dependencies and features sections. - Add `tidy` markers to the sorted sections so they stay sorted. - Remove empty `[lib`] sections. - Remove "See more keys..." comments. Excluded files: - rustc_codegen_{cranelift,gcc}, because they're external. - rustc_lexer, because it has external use. - stable_mir, because it has external use.
2023-10-18Use v0.0.0 in compiler cratesMichael Goulet-1/+1
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-22Remove unused `synstructure` depclubby789-1/+0
2023-04-18Add `rustc_fluent_macro` to decouple fluent from `rustc_macros`Nilstrieb-0/+417
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`).