]> git.lizzy.rs Git - rust.git/commit
Change ItemModifier and ItemDecorator to traits
authorSteven Fackler <sfackler@gmail.com>
Wed, 10 Sep 2014 06:57:14 +0000 (23:57 -0700)
committerSteven Fackler <sfackler@gmail.com>
Wed, 10 Sep 2014 16:15:13 +0000 (09:15 -0700)
commit313cb8acaea05e703441bd5adb92aacce5bf6411
tree66f774dcb2ed082983adeea86d26bd23175a1678
parent6ceb9b4157a076977b0d782632960bb90a0d39d9
Change ItemModifier and ItemDecorator to traits

For convenience, the traits are implemented for the respective bare
functions. Change code from this:

```rust
ItemDecorator(some_function)
// or
ItemModifier(some_other_function)
```
to
```rust
ItemDecorator(box some_function)
// or
ItemModifier(box some_other_function)
```

[breaking-change]
src/libsyntax/ext/base.rs
src/libsyntax/ext/expand.rs
src/test/auxiliary/macro_crate_test.rs