Uh oh!
There was an error while loading. Please reload this page.
Fluent tidy improvements - #147396
Conversation
Kivooeo
commented
Oct 6, 2025
Looks great, nice that we can use builtin things to parse it Have you test it locally? |
GuillaumeGomez
commented
Oct 6, 2025
A bit, it detects what it's supposed to. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
GuillaumeGomez
commented
Oct 6, 2025
It's the part I'm unclear about. The current seems to only move the line where the message is defined, but I don't know if it moves its content too. And what happens about comments, etc etc. I can look into it in a follow-up if you want? |
Kobzol
commented
Oct 6, 2025
Sure, it seems more complicated. |
8a4e7df to
831cdf3CompareGuillaumeGomez
commented
Oct 6, 2025
Applied suggestions. |
Kobzol
commented
Oct 6, 2025
Looks good, thanks! @bors r+ rollup |
bors
commented
Oct 6, 2025
831cdf3 to
d53eb91Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d53eb91 to
831cdf3Comparerustbot
commented
Oct 6, 2025
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
GuillaumeGomez
commented
Oct 6, 2025
Sorry, pushed another code to this branch. Fixed it. |
GuillaumeGomez
commented
Oct 6, 2025
@bors r=kobzol rollup |
bors
commented
Oct 6, 2025
…ments, r=kobzol Fluent tidy improvements Follow-up of rust-lang#147345 and of rust-lang#147191. It uses `fluent_syntax` to parse `fluent` files (but not for blessing, not even sure how the current one works). I also added an `assert` to ensure we never go to previous situation where the `fluent` files were actually not checked at all. cc `@Kivooeo` r? kobzol
Rollup of 7 pull requests Successful merges: - #145495 (Use declarative macro for `#[derive(TryFromU32)]`) - #147165 (test: Subtract code_offset from width for ui_testing) - #147354 (Fix wrong span for hightlight for duplicated diff lines) - #147395 (Improve diagnostics: update note and add help message) - #147396 (Fluent tidy improvements) - #147407 (Update books) - #147413 (don't panic on extern with just multiple quotes in the name) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #147396 - GuillaumeGomez:fluent-tidy-improvements, r=kobzol Fluent tidy improvements Follow-up of #147345 and of #147191. It uses `fluent_syntax` to parse `fluent` files (but not for blessing, not even sure how the current one works). I also added an `assert` to ensure we never go to previous situation where the `fluent` files were actually not checked at all. cc ``@Kivooeo`` r? kobzol
Rollup of 7 pull requests Successful merges: - rust-lang/rust#145495 (Use declarative macro for `#[derive(TryFromU32)]`) - rust-lang/rust#147165 (test: Subtract code_offset from width for ui_testing) - rust-lang/rust#147354 (Fix wrong span for hightlight for duplicated diff lines) - rust-lang/rust#147395 (Improve diagnostics: update note and add help message) - rust-lang/rust#147396 (Fluent tidy improvements) - rust-lang/rust#147407 (Update books) - rust-lang/rust#147413 (don't panic on extern with just multiple quotes in the name) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 7 pull requests Successful merges: - rust-lang/rust#145495 (Use declarative macro for `#[derive(TryFromU32)]`) - rust-lang/rust#147165 (test: Subtract code_offset from width for ui_testing) - rust-lang/rust#147354 (Fix wrong span for hightlight for duplicated diff lines) - rust-lang/rust#147395 (Improve diagnostics: update note and add help message) - rust-lang/rust#147396 (Fluent tidy improvements) - rust-lang/rust#147407 (Update books) - rust-lang/rust#147413 (don't panic on extern with just multiple quotes in the name) r? `@ghost` `@rustbot` modify labels: rollup
Follow-up of #147345 and of #147191.
It uses
fluent_syntaxto parsefluentfiles (but not for blessing, not even sure how the current one works).I also added an
assertto ensure we never go to previous situation where thefluentfiles were actually not checked at all.cc @Kivooeo
r? kobzol