Skip to content

Commit bc70d0d

Browse files
committed
Rename ProcMacroDerive as DeriveProcMacro.
So it matches the existing `AttrProcMacro` and `BangProcMacro` types.
1 parent dbdc7dd commit bc70d0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_expand/src/proc_macro.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ impl base::AttrProcMacro for AttrProcMacro {
7272
}
7373
}
7474

75-
pub struct ProcMacroDerive {
75+
pub struct DeriveProcMacro {
7676
pub client: pm::bridge::client::Client<fn(pm::TokenStream) -> pm::TokenStream>,
7777
}
7878

79-
impl MultiItemModifier for ProcMacroDerive {
79+
impl MultiItemModifier for DeriveProcMacro {
8080
fn expand(
8181
&self,
8282
ecx: &mut ExtCtxt<'_>,

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustc_data_structures::svh::Svh;
1111
use rustc_data_structures::sync::{Lock, LockGuard, Lrc, OnceCell};
1212
use rustc_data_structures::unhash::UnhashMap;
1313
use rustc_expand::base::{SyntaxExtension, SyntaxExtensionKind};
14-
use rustc_expand::proc_macro::{AttrProcMacro, BangProcMacro, ProcMacroDerive};
14+
use rustc_expand::proc_macro::{AttrProcMacro, BangProcMacro, DeriveProcMacro};
1515
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res};
1616
use rustc_hir::def_id::{CrateNum, DefId, DefIndex, CRATE_DEF_INDEX, LOCAL_CRATE};
1717
use rustc_hir::definitions::{DefKey, DefPath, DefPathData, DefPathHash};
@@ -837,7 +837,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
837837
attributes.iter().cloned().map(Symbol::intern).collect::<Vec<_>>();
838838
(
839839
trait_name,
840-
SyntaxExtensionKind::Derive(Box::new(ProcMacroDerive { client })),
840+
SyntaxExtensionKind::Derive(Box::new(DeriveProcMacro { client })),
841841
helper_attrs,
842842
)
843843
}

0 commit comments

Comments
 (0)