about summary refs log tree commit diff
path: root/tests/ui-fulldeps/fluent-messages
AgeCommit message (Collapse)AuthorLines
2024-12-27Remove the `-test` suffix from normalize directivesZalathar-1/+1
2024-09-17fluent_macro: fix diagnostics for fluent parse failuresXiretza-5/+5
This line number calculation was both wrong and unnecessary.
2024-09-17Add test for fluent diagnosticsXiretza-1/+32
2024-07-11Always use a colon in `//@ normalize-*:` headersZalathar-1/+1
2024-03-05Rename `SubdiagnosticMessage` as `SubdiagMessage`.Nicholas Nethercote-3/+3
2024-03-05Rename `DiagnosticMessage` as `DiagMessage`.Nicholas Nethercote-3/+3
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-1/+1
2023-11-26Use `rustc_fluent_macro::fluent_messages!` directly.Nicholas Nethercote-70/+49
Currently we always do this: ``` use rustc_fluent_macro::fluent_messages; ... fluent_messages! { "./example.ftl" } ``` But there is no need, we can just do this everywhere: ``` rustc_fluent_macro::fluent_messages! { "./example.ftl" } ``` which is shorter.
2023-11-26Avoid need for `{D,Subd}iagnosticMessage` imports.Nicholas Nethercote-1/+1
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-04-18Add `rustc_fluent_macro` to decouple fluent from `rustc_macros`Nilstrieb-2/+2
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`).
2023-03-31Don't emit the OS error in a noteest31-10/+6
This makes it possible to make the normalization of the error message more precise, allowing us to not normalize all notes away.
2023-03-29Check for escape sequences in Fluent resourcesclubby789-1/+35
2023-02-22errors: generate typed identifiers in each crateDavid Wood-105/+76
Instead of loading the Fluent resources for every crate in `rustc_error_messages`, each crate generates typed identifiers for its own diagnostics and creates a static which are pulled together in the `rustc_driver` crate and provided to the diagnostic emitter. Signed-off-by: David Wood <david.wood@huawei.com>
2023-01-27Detect references to non-existant messages in Fluent resourcesclubby789-1/+19
2023-01-11Move /src/test to /testsAlbert Larsan-0/+205