Skip to content

Re-add double underscores in derive #32294

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 2 commits into from
Mar 17, 2016
Merged

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Mar 16, 2016

@durka, sanity-check, please?

Don't merge this yet, I need to add a test and test it locally.

ready for review

(fixes #32292)

@rust-highfive
Copy link
Contributor

r? @aturon

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

@durka
Copy link
Contributor

durka commented Mar 16, 2016

Woo, highfive is back!

@@ -929,10 +929,10 @@ impl<'a> MethodDef<'a> {
///
/// // equivalent to:
/// impl PartialEq for A {
/// fn eq(&self, arg_1: &A) -> bool {
/// fn eq(&self, __arg_1: &A) -> bool {
/// match *self {
/// A {x: ref self_0_0, y: ref self_0_1} => {
Copy link
Contributor

Choose a reason for hiding this comment

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

missed these comments, if you care


#![deny(warnings)]

#[derive(Hash)]
Copy link
Member

Choose a reason for hiding this comment

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

Can you add all other deriving modes here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@alexcrichton
Copy link
Member

@bors: r+ e63a6af5d7faaa0dd1cbfec6d43fe68ca7259329

@durka
Copy link
Contributor

durka commented Mar 17, 2016

I think this line needs to regain some underscores.

@Manishearth
Copy link
Member Author

@bors r=alexcrichton

Ah, fixed.

@bors
Copy link
Collaborator

bors commented Mar 17, 2016

📌 Commit 52e064c has been approved by alexcrichton

@bors
Copy link
Collaborator

bors commented Mar 17, 2016

⌛ Testing commit 52e064c with merge b12b4e4...

bors added a commit that referenced this pull request Mar 17, 2016
Re-add double underscores in derive (fixes #32292)

@durka, sanity-check, please?

<s>Don't merge this yet, I need to add a test and test it locally.</s>

ready for review
@bors bors merged commit 52e064c into rust-lang:master Mar 17, 2016
@Manishearth Manishearth deleted the derive-fix branch December 2, 2016 19:03
@Manishearth Manishearth changed the title Re-add double underscores in derive (fixes #32292) Re-add double underscores in derive Apr 5, 2018
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.

Warning false positive with #[derive(Hash)] in nightly
6 participants