-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
fix span for invalid number of parameters in trait method #56641
fix span for invalid number of parameters in trait method #56641
Conversation
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
... | ||
LL | / &mut self, //~ ERROR | ||
LL | | x: i32, | ||
| |______________^ expected 3 parameters, found 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be tweaked to actually include either the fn signature or the entire block in order to provide enough context when generating this error in the terminal, but that would be a good follow up tweak.
@bors r+ rollup |
📌 Commit 05cea31 has been approved by |
…valid-nb-parameters, r=estebank fix span for invalid number of parameters in trait method Fixes rust-lang#56582.
Fixes #56582.