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

Use derive macro for HashStable #56864

Merged
merged 3 commits into from
Mar 13, 2019
Merged

Use derive macro for HashStable #56864

merged 3 commits into from
Mar 13, 2019

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Dec 15, 2018

Blocked on #56795

@rust-highfive
Copy link
Collaborator

r? @matthewjasper

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 15, 2018
@rust-highfive

This comment has been minimized.

@Zoxc Zoxc force-pushed the stable-hash-macro branch 2 times, most recently from fa13d01 to 8067955 Compare December 16, 2018 04:58
@Zoxc
Copy link
Contributor Author

Zoxc commented Dec 16, 2018

r? @michaelwoerister

@michaelwoerister
Copy link
Member

Looks promising!

@bors

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@bors

This comment has been minimized.

@Zoxc Zoxc mentioned this pull request Dec 28, 2018
bors added a commit that referenced this pull request Jan 11, 2019
[WIP] Allocate HIR on an arena

Blocked on #56864
@Dylan-DPC-zz Dylan-DPC-zz added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 21, 2019
@rust-highfive

This comment has been minimized.

@bors

This comment has been minimized.

bors added a commit that referenced this pull request Mar 8, 2019
Create a derive macro for HashStable and allow proc macros in rustc

A combination of #56864 and #56795. There were complications with using `serde_derive` as rustc doesn't know which crate to use for the host when there is a serde_derive in the sysroot and cargo passes another on the command line built from crates.io.

r? @eddyb (for proc macro changes) @alexcrichton (for rustbuild changes) @michaelwoerister (for the macro itself)
pub struct EnumDef {
pub variants: HirVec<Variant>,
}

#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
pub struct VariantKind {
pub ident: Ident,
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be missing a projection attribute.

pub enum AssociatedItemKind {
Const,
Method { has_self: bool },
Type,
Existential,
}

#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
pub struct ForeignItem {
pub ident: Ident,
Copy link
Member

Choose a reason for hiding this comment

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

This too.

@michaelwoerister
Copy link
Member

Beautiful, thanks @Zoxc! r=me with the two nits addressed.

@rust-lang/compiler, please marvel at the diff stats of this PR :)

@Zoxc
Copy link
Contributor Author

Zoxc commented Mar 13, 2019

@bors r=michaelwoerister

@bors
Copy link
Contributor

bors commented Mar 13, 2019

📌 Commit bc3a84a has been approved by michaelwoerister

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 13, 2019
@bors
Copy link
Contributor

bors commented Mar 13, 2019

⌛ Testing commit bc3a84a with merge 09cf073a10bb65a550dd3082e2a7511a7d43dd8f...

@bors
Copy link
Contributor

bors commented Mar 13, 2019

💥 Test timed out

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 13, 2019
@ljedrz
Copy link
Contributor

ljedrz commented Mar 13, 2019

@bors retry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 13, 2019
@bors
Copy link
Contributor

bors commented Mar 13, 2019

⌛ Testing commit bc3a84a with merge cf6d881...

bors added a commit that referenced this pull request Mar 13, 2019
Use derive macro for HashStable

Blocked on #56795
@bors
Copy link
Contributor

bors commented Mar 13, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: michaelwoerister
Pushing cf6d881 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants