]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12617 : sfackler/rust/item-modifier, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 11 Mar 2014 07:32:04 +0000 (00:32 -0700)
committerbors <bors@rust-lang.org>
Tue, 11 Mar 2014 07:32:04 +0000 (00:32 -0700)
Where ItemDecorator creates new items given a single item, ItemModifier
alters the tagged item in place. The expansion rules for this are a bit
weird, but I think are the most reasonable option available.

When an item is expanded, all ItemModifier attributes are stripped from
it and the item is folded through all ItemModifiers. At that point, the
process repeats until there are no ItemModifiers in the new item.

cc @huonw


Trivial merge