diff options
| author | Josh Driver <keeperofdakeys@gmail.com> | 2017-01-24 08:55:08 +1030 |
|---|---|---|
| committer | Josh Driver <keeperofdakeys@gmail.com> | 2017-02-05 09:31:02 +1030 |
| commit | 0a7380d7fcd99ef288ee038fd145da5af41ce84a (patch) | |
| tree | d6c1b87ceaac2ecef8f184dcbbc6be7cda14a8bd /src/libsyntax/ext/base.rs | |
| parent | 0477daf9f0788e9ce77149357be9d7209be38fce (diff) | |
| download | rust-0a7380d7fcd99ef288ee038fd145da5af41ce84a.tar.gz rust-0a7380d7fcd99ef288ee038fd145da5af41ce84a.zip | |
Rename CustomDerive to ProcMacroDerive for macros 1.1
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 231e2e6205c..17b0b97468d 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -510,7 +510,11 @@ pub enum SyntaxExtension { /// IdentTT(Box<IdentMacroExpander>, Option<Span>, bool), - CustomDerive(Box<MultiItemModifier>), + /// An attribute-like procedural macro. TokenStream -> TokenStream. + /// The input is the annotated item. + /// Allows generating code to implement a Trait for a given struct + /// or enum item. + ProcMacroDerive(Box<MultiItemModifier>), /// An attribute-like procedural macro that derives a builtin trait. BuiltinDerive(BuiltinDeriveFn), |
