Skip to content

rustc: Implement "deriving" for monomorphic structs via a syntax extensi... #4005

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

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
libsyntax: Fix duplication of items that occurs if #[deriving_eq] i…
…s applied to a non-enum/non-struct
  • Loading branch information
pcwalton committed Nov 20, 2012
commit d76a5fcfc63b2a611f8e399f12f86a595ae988f5
2 changes: 1 addition & 1 deletion src/libsyntax/ext/deriving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn expand_deriving_eq(cx: ext_ctxt,
enum_definition,
item.ident));
}
_ => result.push(copy *item) // XXX: Don't copy.
_ => ()
}
}
dvec::unwrap(move result)
Expand Down