From 9dc0afe854380f17bbec9100187ef3d3aa397f28 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 18 Sep 2020 15:37:31 +0200 Subject: Rename `CustomDerive` to `ProcMacro` It handles fn-like macros too, and will handle attribute macros in the future --- crates/hir_expand/src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_expand/src/db.rs') diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index 710694a34..b591130ca 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs @@ -143,7 +143,7 @@ pub(crate) fn macro_def( Some(Arc::new((TokenExpander::BuiltinDerive(expander), mbe::TokenMap::default()))) } MacroDefKind::BuiltInEager(_) => None, - MacroDefKind::CustomDerive(expander) => { + MacroDefKind::ProcMacro(expander) => { Some(Arc::new((TokenExpander::ProcMacro(expander), mbe::TokenMap::default()))) } } @@ -249,7 +249,7 @@ pub(crate) fn expand_proc_macro( }; let expander = match loc.def.kind { - MacroDefKind::CustomDerive(expander) => expander, + MacroDefKind::ProcMacro(expander) => expander, _ => unreachable!(), }; -- cgit v1.2.3