Only use assign_id! for ast nodes that support attributes

This commit is contained in:
Aaron Hill
2021-07-17 08:22:09 -05:00
parent d6e3c11101
commit 7ca089c6d2
2 changed files with 8 additions and 5 deletions

View File

@@ -29,6 +29,9 @@ use std::rc::Rc;
crate use rustc_span::hygiene::MacroKind;
// When adding new variants, make sure to
// adjust the `visit_*` / `flat_map_*` calls in `InvocationCollector`
// to use `assign_id!`
#[derive(Debug, Clone)]
pub enum Annotatable {
Item(P<ast::Item>),