Skip to content

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Oct 6, 2025

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

@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Oct 6, 2025
@Kivooeo
Copy link
Member

Kivooeo commented Oct 6, 2025

Looks great, nice that we can use builtin things to parse it

Have you test it locally?

@GuillaumeGomez
Copy link
Member Author

A bit, it detects what it's supposed to.

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks! Do you think we could also use the parser for sorting the records?

View changes since this review

@GuillaumeGomez
Copy link
Member Author

This is great, thanks! Do you think we could also use the parser for sorting the records?

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
Copy link
Member

Kobzol commented Oct 6, 2025

Sure, it seems more complicated.

@GuillaumeGomez GuillaumeGomez force-pushed the fluent-tidy-improvements branch from 8a4e7df to 831cdf3 Compare October 6, 2025 11:48
@GuillaumeGomez
Copy link
Member Author

Applied suggestions.

@Kobzol
Copy link
Member

Kobzol commented Oct 6, 2025

Looks good, thanks!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 6, 2025

📌 Commit 831cdf3 has been approved by Kobzol

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 6, 2025
@GuillaumeGomez GuillaumeGomez force-pushed the fluent-tidy-improvements branch from 831cdf3 to d53eb91 Compare October 6, 2025 13:21
@rustbot rustbot added the A-run-make Area: port run-make Makefiles to rmake.rs label Oct 6, 2025
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@GuillaumeGomez GuillaumeGomez force-pushed the fluent-tidy-improvements branch from d53eb91 to 831cdf3 Compare October 6, 2025 13:23
@rustbot
Copy link
Collaborator

rustbot 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
Copy link
Member Author

Sorry, pushed another code to this branch. Fixed it.

@GuillaumeGomez
Copy link
Member Author

@bors r=kobzol rollup

@bors
Copy link
Collaborator

bors commented Oct 6, 2025

📌 Commit 831cdf3 has been approved by kobzol

It is now in the queue for this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-run-make Area: port run-make Makefiles to rmake.rs A-tidy Area: The tidy tool S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants