summary refs log tree commit diff
path: root/src/libsyntax_ext/deriving/hash.rs
AgeCommit message (Collapse)AuthorLines
2016-03-27deriving: factor out discriminant_value constructionAlex Burka-10/+5
2016-03-27fix #21714 by using discriminant_value in #[derive(Hash)]Alex Burka-9/+12
This is the same approach taken in #24270, except that this should not be a breaking change because it only changes the output of hash functions, which nobody should be relying on.
2016-03-14derive: improve hygiene for type parameters (see #2810)Alex Burka-2/+6
When deriving Hash, RustcEncodable and RustcDecodable, the syntax extension needs a type parameter to use in the inner method. They used to use __H, __S and __D respectively. If this conflicts with a type parameter already declared for the item, bad times result (see the test). There is no hygiene for type parameters, but this commit introduces a better heuristic by concatenating the names of all extant type parameters (and prepending __H).
2016-02-22Fix #[derive] for empty structs with bracesVadim Petrochenkov-1/+1
2016-02-11[breaking-change] don't glob export ast::Mutablity variantsOliver 'ker' Schneider-2/+2
2015-12-15Move built-in syntax extensions to a separate crateSeo Sanghyeon-0/+100