diff options
| author | Keegan McAllister <kmcallister@mozilla.com> | 2015-03-06 13:15:54 -0800 |
|---|---|---|
| committer | Keegan McAllister <kmcallister@mozilla.com> | 2015-03-06 18:20:16 -0800 |
| commit | 491054f08e2aaaa8438f1a9943f115dad9da1c6b (patch) | |
| tree | 7ab7e4dfd5b60e7d3d3aedb501065da17bc35204 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | e60e6f0693adfd03340dff31023c7517dc3af1b5 (diff) | |
| download | rust-491054f08e2aaaa8438f1a9943f115dad9da1c6b.tar.gz rust-491054f08e2aaaa8438f1a9943f115dad9da1c6b.zip | |
Make #[derive(Anything)] into sugar for #[derive_Anything]
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.
This commit also cleans up the deriving code somewhat, and forbids some
previously-meaningless attribute syntax. For this reason it's technically a
[breaking-change]
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
