about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving
AgeCommit message (Collapse)AuthorLines
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-86/+88
2013-05-12librustc: Make `self` and `static` into keywordsPatrick Walton-12/+7
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-11/+15
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10Fix deriving(IterBytes) to use the new for-loop protocolAlex Crichton-11/+15
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-90/+90
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-08libcore: Fix more merge fallout.Patrick Walton-5/+10
2013-05-08librustc: Fix merge fallout.Patrick Walton-8/+4
2013-05-08librustc: Remove mutable fields from the language.Patrick Walton-3/+3
They're still parsed though, to get through bootstrapping.
2013-05-07libsyntax: add #[deriving(Rand, ToStr)].Huon Wilson-0/+196
The former fills each field of a struct or enum variant with a random value (and picks a random enum variant). The latter makes the .to_str method have the same output as fmt!("%?", ..).
2013-05-07libsyntax: convert #[deriving(IterBytes)] to generic derivingHuon Wilson-223/+61
2013-05-07libsyntax: extend generic deriving code to handle almost all possible traits.Huon Wilson-529/+877
This adds support for static methods, and arguments of most types, traits with type parameters, methods with type parameters (and lifetimes for both), as well as making the code more robust to support deriving on types with lifetimes (i.e. 'self).
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-13/+78
mutable fields in the process
2013-04-27only use #[no_core] in libcoreDaniel Micay-18/+0
2013-04-25Rename vec::mod2 to vec::mod_zipCorey Richardson-1/+1
2013-04-19syntax: de-mode and prepare for de-modeing rustcAlex Crichton-3/+3
2013-04-12libsyntax: another fix for deriving on windows.Huon Wilson-2/+1
2013-04-12libsyntax: (maybe) fix deriving(TotalOrd) on windowsHuon Wilson-6/+6
2013-04-12libsyntax: short-circuit on non-matching variants in deriving code.Huon Wilson-81/+151
Allow a deriving instance using the generic code to short-circuit for any non-matching enum variants (grouping them all into a _ match), reducing the number of arms required. Use this to speed up the Eq & TotalEq implementations.
2013-04-12libsyntax: derive Clone, Eq, TotalEq, Ord, TotalOrd with the new generic ↵Huon Wilson-761/+411
deriving code. Closes #4269, #5588 and #5589.
2013-04-12libsyntax: abstract most of the deriving boilerplate into a simpler(r) ↵Huon Wilson-42/+915
interface. Pulls out many of the common patterns from the Eq and Clone deriving code (and invents a few of its own), so that deriving instances are very easy to write for a certain class of traits. (Basically, those which don't have parameters and where all methods only take arguments of type `&Self` and return either `Self` or types with no parameters.)
2013-04-10syntax: add support for #[deriving(Decodable)]Erick Tryzelaar-0/+457
2013-04-10syntax: add support for #[deriving(Encodable)]Erick Tryzelaar-0/+391
2013-04-10syntax: Simplify deriving to handle classes that take generics, like EncodableErick Tryzelaar-34/+28
2013-04-10syntax: update a deriving error message to use the new syntaxErick Tryzelaar-5/+3
2013-04-10path -> PathJohn Clements-1/+1
2013-04-05Refactor so that references to traits are not represented using a type with aNiko Matsakis-3/+3
bare function store (which is not in fact a kind of value) but rather ty::TraitRef. Removes many uses of fail!() and other telltale signs of type-semantic mismatch. cc #4183 (not a fix, but related)
2013-03-31Fix warningsBrian Anderson-1/+1
2013-03-28Removing unused importsAlex Crichton-31/+10
2013-03-28librustc: Remove common fields and nested enums from the languagePatrick Walton-10/+4
2013-03-27remove sty_by_ref, though traces still remain due to dtorsNiko Matsakis-4/+4
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-10/+12
2013-03-26Rip out old code that still structured method calls as aNiko Matsakis-15/+11
expr_call(expr_field(...)) rather than an expr_method_call. There is probably more such code in trans that should be removed.
2013-03-22syntax: make old `#[deriving_foo]` attribute obsoleteAndrew Paseltiner-0/+28
2013-03-22syntax: replace uses of old deriving attribute with new oneAndrew Paseltiner-2/+2
2013-03-19syntax: split deriving module into submodules for each traitAndrew Paseltiner-973/+1058
2013-03-19syntax: move ext/deriving.rs to ext/deriving/mod.rsAndrew Paseltiner-0/+1267