diff options
Diffstat (limited to 'crates/hir_expand/src/lib.rs')
-rw-r--r-- | crates/hir_expand/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_expand/src/lib.rs b/crates/hir_expand/src/lib.rs index 83e11019f..0a379651f 100644 --- a/crates/hir_expand/src/lib.rs +++ b/crates/hir_expand/src/lib.rs | |||
@@ -245,7 +245,7 @@ impl MacroDefId { | |||
245 | MacroDefKind::BuiltIn(_, id) => id, | 245 | MacroDefKind::BuiltIn(_, id) => id, |
246 | MacroDefKind::BuiltInDerive(_, id) => id, | 246 | MacroDefKind::BuiltInDerive(_, id) => id, |
247 | MacroDefKind::BuiltInEager(_, id) => id, | 247 | MacroDefKind::BuiltInEager(_, id) => id, |
248 | MacroDefKind::ProcMacro(_) => return None, | 248 | MacroDefKind::ProcMacro(..) => return None, |
249 | }; | 249 | }; |
250 | Some(*id) | 250 | Some(*id) |
251 | } | 251 | } |
@@ -258,7 +258,7 @@ pub enum MacroDefKind { | |||
258 | // FIXME: maybe just Builtin and rename BuiltinFnLikeExpander to BuiltinExpander | 258 | // FIXME: maybe just Builtin and rename BuiltinFnLikeExpander to BuiltinExpander |
259 | BuiltInDerive(BuiltinDeriveExpander, AstId<ast::Macro>), | 259 | BuiltInDerive(BuiltinDeriveExpander, AstId<ast::Macro>), |
260 | BuiltInEager(EagerExpander, AstId<ast::Macro>), | 260 | BuiltInEager(EagerExpander, AstId<ast::Macro>), |
261 | ProcMacro(ProcMacroExpander), | 261 | ProcMacro(ProcMacroExpander, AstId<ast::Fn>), |
262 | } | 262 | } |
263 | 263 | ||
264 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 264 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |