-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add error explanations for E0185, E0186, E0202, E0326. Fix E0053. #25593
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
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
impl Foo for Bar { | ||
// error, method `foo` has a `&self` declaration in the trait, but not in | ||
// the impl | ||
fn foo(&self) {} |
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.
Did this mistakenly include &self
?
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.
Yep. Fixed, thanks.
r=me with just a minor nit, thanks! |
@alexcrichton I just realized I missed a test with the E0202 change. I've fixed it and it now passes |
Changes: - adds explanations for E0185, E0186, E0202, E0326 - fixes the explanation for E0053. The previous description was too narrow; there are other error cases. - changes the error message for E0202 to be specific for associated types, since it seems inherent associated constants are implemented. Part of #24407
Changes:
Part of #24407