about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/rand.rs
AgeCommit message (Collapse)AuthorLines
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-6/+6
&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-07libsyntax: add #[deriving(Rand, ToStr)].Huon Wilson-0/+136
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!("%?", ..).