Move MacroKind into Def::Macro

This commit is contained in:
Josh Driver
2017-02-23 20:12:33 +10:30
parent 306035c217
commit 4ecdc68153
8 changed files with 28 additions and 15 deletions

View File

@@ -475,7 +475,7 @@ pub type BuiltinDeriveFn =
for<'cx> fn(&'cx mut ExtCtxt, Span, &MetaItem, &Annotatable, &mut FnMut(Annotatable));
/// Represents different kinds of macro invocations that can be resolved.
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
pub enum MacroKind {
/// A bang macro - foo!()
Bang,