-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Incorrect named_arguments_used_positionally suggestion in obscure case #99655
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I think @PrestonFrom is working on this? |
Yea, I am! Sorry, taking a little longer than I expected. Thank you for the additional test cases! |
No rush @PrestonFrom. |
@PrestonFrom awesome! I have been hacking on rust-lang/rust-clippy#9233 -- a clippy lint to inline Thanks @compiler-errors for the connection! |
Lol, yeah the current implementation in rustc doesn't track these spans either. 🤣 |
@PrestonFrom did you fix this or does this need to further fixed? (Just asking, no pressure for you to do it if it's not fixed by your previous PRs) |
@compiler-errors Oh, sorry! I believe this is fixed by previous PRs. |
No worries. Just trawling the issues backlog 😄 |
Just checked and unless I'm mistaken all the cases in this issue are covered. Is it okay to close this? |
Uh oh!
There was an error while loading. Please reload this page.
This code is not really something anyone SHOULD write, but because rustc catches it and makes a suggestion, it should either handle it correctly, or not suggest anything at all and give a different warning because it is clearly not something anyone should ever write, and thus it is likely a bug.
Expected
I expected to see this happen (one of these):
argument_used_multiple_times_as_value_and_as_format_or_precision
(the name needs some work :) )Current behavior
Instead, rustc showed this incorrect suggestion:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: