github-actions[bot] commented on issue #6144:
Subscribe to Label Action
cc @cfallin, @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "isle"Thus the following users have been cc'd because of the following labels:
- cfallin: isle
- fitzgen: isle
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
seanjensengrey commented on issue #6144:
@jameysharp could this be a viable clippy lint?
jameysharp commented on issue #6144:
I don't know how much a Clippy lint can do. This PR required checking every call site for
translate_patternto see that a particular argument either used the same enum variant or was a recursive call that passed that argument through unchanged. Does Clippy do inter-procedural analyses like that?It helped that the method in question was not
pubso it was easy to prove I'd checked all of its possible call sites. In general, I'd guess a Clippy lint for this couldn't fire all that often since any functions visible outside the crate would have to be exempt.At any rate, I think this is a question you should pose to the Clippy developers. We generally don't use Clippy in this project so I'm not all that familiar with it. But it's an interesting question and I do like to indulge in a good static analysis on occasion.
Last updated: Dec 13 2025 at 19:03 UTC