Skip to content

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

Merged
merged 4 commits into from
May 26, 2015

Conversation

nham
Copy link
Contributor

@nham nham commented May 19, 2015

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

@rust-highfive
Copy link
Contributor

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) {}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Fixed, thanks.

@alexcrichton
Copy link
Member

r=me with just a minor nit, thanks!

@alexcrichton
Copy link
Member

@bors: r+ 1486508

@nham
Copy link
Contributor Author

nham commented May 20, 2015

@alexcrichton I just realized I missed a test with the E0202 change. I've fixed it and it now passes make check-stage1

@alexcrichton
Copy link
Member

@bors: r+ cc9d1de

@bors
Copy link
Collaborator

bors commented May 26, 2015

⌛ Testing commit cc9d1de with merge 6a003ab...

bors added a commit that referenced this pull request May 26, 2015
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
@bors bors merged commit cc9d1de into rust-lang:master May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants