]> git.lizzy.rs Git - rust.git/commit
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)
commitb389615560c1b0e03c5e1b408ad63dc42ed85dd4
tree73064854a9158c2497df4670daa647d1f24b8a5d
parentb63cd004fc22089fbec7d74fc5a54536d093b1b4
parenteb4cbd55a859be68d381ce4fdb597b0893c18c04
auto merge of #12617 : sfackler/rust/item-modifier, r=alexcrichton

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