-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unused Fluent messages lint #110754
Comments
@rustbot claim Basically, one would need to: traverse the directories, parse the ftl files, and for each ftl file found, determine if the fluent messages contained are either used internally, or used somewhere else inside the compiler. This can work on a simple token/word level, as using syn in tidy isn't really an option, as the compiler uses unstable syntax. |
Something like this was noticed in #127935 - we had two labels called |
Unassigning myself as I didn't find the time for it. |
An easier way might be to accept a Possibly less robust I guess, but bootstrap has pretty good control over the environment. And |
cc #132181 |
iirc I did work on this previously by just making the fluent constants |
Inspired by #110597 - we should add a check for unused Fluent messages.
The text was updated successfully, but these errors were encountered: