]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #10649 : sfackler/rust/multi-macro, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 26 Nov 2013 22:52:05 +0000 (14:52 -0800)
committerbors <bors@rust-lang.org>
Tue, 26 Nov 2013 22:52:05 +0000 (14:52 -0800)
The majority of this change is modifying some of the `ast_visit` methods to return multiple values.

It's prohibitively expensive to allocate a `~[Foo]` every time a statement, declaration, item, etc is visited, especially since the vast majority will have 0 or 1 elements. I've added a `SmallVector` class that avoids allocation in the 0 and 1 element cases to take care of that.


Trivial merge