Skip to content
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

add separate errors for out-of-place associated consts and types #27120

Merged
merged 1 commit into from
Jul 20, 2015
Merged

add separate errors for out-of-place associated consts and types #27120

merged 1 commit into from
Jul 20, 2015

Conversation

apasel422
Copy link
Contributor

Previously, these would both be labeled as methods.

@rust-highfive
Copy link
Collaborator

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@arielb1
Copy link
Contributor

arielb1 commented Jul 19, 2015

r? @nagisa

/// error E0437: type is not a member of trait
TypeNotMemberOfTrait(Name, &'a str),
/// error E0438: const is not a member of trait
ConstNotMemberOfTrait(Name, &'a str),
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I’d group related enum variants together by purpose rather than error code. That is, it would be easier to read the code if MethodNotMemberOfTrait, TypeNotMemberOfTrait and ConstNotMemberOfTrait were all adjacent to each other.

@nagisa
Copy link
Member

nagisa commented Jul 19, 2015

Baring the nits, LGTM.

Previously, these would both be labeled as methods.
@apasel422
Copy link
Contributor Author

Nits addressed and rebased.

@arielb1
Copy link
Contributor

arielb1 commented Jul 19, 2015

@bors r+ ce856a5

@bors
Copy link
Contributor

bors commented Jul 20, 2015

⌛ Testing commit ce856a5 with merge ef04b07...

bors added a commit that referenced this pull request Jul 20, 2015
Previously, these would both be labeled as methods.
@bors bors merged commit ce856a5 into rust-lang:master Jul 20, 2015
@apasel422 apasel422 deleted the associated-item-error branch July 20, 2015 03:24
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