cleanup: use DummyResult to implement MacroGenerable::dummy

This commit is contained in:
Jeffrey Seyfried
2016-06-17 11:02:42 +00:00
parent b968ee3656
commit 2dc15f2b96
2 changed files with 17 additions and 19 deletions

View File

@@ -443,6 +443,10 @@ impl MacResult for DummyResult {
span: self.span,
}))
}
fn make_ty(self: Box<DummyResult>) -> Option<P<ast::Ty>> {
Some(DummyResult::raw_ty(self.span))
}
}
/// An enum representing the different kinds of syntax extensions.