commit | 9c76bcbe163ae7e0e1f1cccef20a9823d3d90548 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Dec 26 23:14:59 2017 -0500 |
committer | David Tolnay <dtolnay@gmail.com> | Wed Dec 27 01:25:13 2017 -0500 |
tree | f5e2dfd3f645c6522860cc47a3530190b0907d89 | |
parent | 991fdf749e2b01c7a1c9fd03841befc35e09c49b [diff] [blame] |
Use TokenTree straight from proc_macro2
diff --git a/src/macros.rs b/src/macros.rs index cf49640..1710444 100644 --- a/src/macros.rs +++ b/src/macros.rs
@@ -20,6 +20,16 @@ ( $(#[$attr:meta])* + pub struct $name:ident #manual_extra_traits $($rest:tt)* + ) => { + $(#[$attr])* + #[cfg_attr(feature = "extra-traits", derive(Debug))] + #[cfg_attr(feature = "clone-impls", derive(Clone))] + pub struct $name $($rest)* + }; + + ( + $(#[$attr:meta])* pub struct $name:ident $($rest:tt)* ) => { $(#[$attr])*