diff options
| author | bors <bors@rust-lang.org> | 2018-12-07 00:48:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-07 00:48:00 +0000 |
| commit | a2fb99bc17527798aeeef1d7ccc61811a9362131 (patch) | |
| tree | 1895bf679f871bc0466087f22b54fe1fabdcfb1f /src/libsyntax_ext | |
| parent | 5182cc1ca65d05f16ee5e1529707ac6f63233ca9 (diff) | |
| parent | 8ab115c21d5309ecf486a517d52deaa56522c823 (diff) | |
| download | rust-a2fb99bc17527798aeeef1d7ccc61811a9362131.tar.gz rust-a2fb99bc17527798aeeef1d7ccc61811a9362131.zip | |
Auto merge of #54271 - petrochenkov:nolegder, r=eddyb,alexcrichton
Unsupport `#[derive(Trait)]` sugar for `#[derive_Trait]` legacy plugin attributes This is a long deprecated unstable feature that doesn't mesh well with regular resolution/expansion. How to fix broken code: - The recommended way is to migrate to stable procedural macros - derives or attributes (https://doc.rust-lang.org/nightly/book/first-edition/procedural-macros.html). - If that's not possible right now for some reason, you can keep code working with a simple mechanical replacement `#[derive(Legacy)]` -> `#[derive_Legacy]`. Closes https://github.com/rust-lang/rust/issues/29644 r? @ghost
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs index 1d814a67876..c49d5772531 100644 --- a/src/libsyntax_ext/lib.rs +++ b/src/libsyntax_ext/lib.rs @@ -39,10 +39,6 @@ extern crate log; mod diagnostics; -#[macro_use] -// for custom_derive -pub mod deriving; - mod asm; mod assert; mod cfg; @@ -54,13 +50,14 @@ mod format; mod format_foreign; mod global_asm; mod log_syntax; -mod trace_macros; +mod proc_macro_server; mod test; mod test_case; +mod trace_macros; +pub mod deriving; pub mod proc_macro_decls; pub mod proc_macro_impl; -mod proc_macro_server; use rustc_data_structures::sync::Lrc; use syntax::ast; |
