]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_def/src/keys.rs
internal: Record unresolved derive invocations in hir
[rust.git] / crates / hir_def / src / keys.rs
index ef0159350024fe050a9ff055fa51556b3f063893..6a7dc13ff17d976502a2d1f41b56886e647f8b0b 100644 (file)
@@ -31,9 +31,9 @@
 pub const LIFETIME_PARAM: Key<ast::LifetimeParam, LifetimeParamId> = Key::new();
 pub const CONST_PARAM: Key<ast::ConstParam, ConstParamId> = Key::new();
 
-pub const MACRO: Key<ast::MacroCall, MacroDefId> = Key::new();
+pub const MACRO: Key<ast::Macro, MacroDefId> = Key::new();
 pub const ATTR_MACRO: Key<ast::Item, MacroCallId> = Key::new();
-pub const DERIVE_MACRO: Key<ast::Attr, MacroCallId> = Key::new();
+pub const DERIVE_MACRO: Key<ast::Attr, Box<[Option<MacroCallId>]>> = Key::new();
 
 /// XXX: AST Nodes and SyntaxNodes have identity equality semantics: nodes are
 /// equal if they point to exactly the same object.