diff options
| author | bors <bors@rust-lang.org> | 2015-03-07 18:39:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-07 18:39:17 +0000 |
| commit | 668c6474081a10768ef143b9984efcab5376bf68 (patch) | |
| tree | 81d2c26b0ce28213424d3238b4e7b8fc1d22605c /src/libstd/sys/unix/stack_overflow.rs | |
| parent | b8c6eb179e9e792c5470abbe2b6eeadc16f34565 (diff) | |
| parent | 491054f08e2aaaa8438f1a9943f115dad9da1c6b (diff) | |
| download | rust-668c6474081a10768ef143b9984efcab5376bf68.tar.gz rust-668c6474081a10768ef143b9984efcab5376bf68.zip | |
Auto merge of #23137 - kmcallister:derive-sugar, r=sfackler
This is a hack, but I don't think we can do much better as long as `derive` is running at the syntax expansion phase.
If the `custom_derive` feature gate is enabled, this works with user-defined traits and syntax extensions. Without the gate, you can't use e.g. `#[derive_Clone]` directly, so this does not change the stable language.
To make this effective, we now check gated attributes both before and after macro expansion. This uncovered a number of tests that were missing feature gates.
This PR also cleans up the deriving code somewhat, and forbids some previously-meaningless attribute syntax. For this reason it's technically a
[breaking-change]
r? @sfackler
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
