Skip to content

Add new optional tidy check to check if ftl error messages are unused#147191

Closed
GuillaumeGomez wants to merge 3 commits intorust-lang:masterfrom
GuillaumeGomez:unused-err-msg
Closed

Add new optional tidy check to check if ftl error messages are unused#147191
GuillaumeGomez wants to merge 3 commits intorust-lang:masterfrom
GuillaumeGomez:unused-err-msg

Conversation

@GuillaumeGomez
Copy link
Member

I realized recently while removing a rustdoc feature that error messages could be unused and we apparently had no checks for that. This PR fills this void.

There is one unresolved question (likely due to my ignorance rather than an actual issue): we have (a lot of) error message IDs that are actually not anywhere in ftl files, like attr_parsing_remove_neg_sugg. Is it expected or not?

In any case, there were unused error message IDs so I removed them in this PR as well.

cc @davidtwco
r? @Kobzol

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-tidy Area: The tidy tool T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.