rustc_expand: Remove redundant field from proc macro expander structures
This information is already available from `ExpnData`
This commit is contained in:
parent
28f4dba438
commit
de897f5205
5 changed files with 18 additions and 33 deletions
|
@ -19,7 +19,6 @@ use crate::deriving::*;
|
|||
|
||||
use rustc_expand::base::{MacroExpanderFn, ResolverExpand, SyntaxExtensionKind};
|
||||
use rustc_expand::proc_macro::BangProcMacro;
|
||||
use rustc_span::def_id::LOCAL_CRATE;
|
||||
use rustc_span::symbol::sym;
|
||||
|
||||
mod asm;
|
||||
|
@ -113,8 +112,5 @@ pub fn register_builtin_macros(resolver: &mut dyn ResolverExpand) {
|
|||
}
|
||||
|
||||
let client = proc_macro::bridge::client::Client::expand1(proc_macro::quote);
|
||||
register(
|
||||
sym::quote,
|
||||
SyntaxExtensionKind::Bang(Box::new(BangProcMacro { client, krate: LOCAL_CRATE })),
|
||||
);
|
||||
register(sym::quote, SyntaxExtensionKind::Bang(Box::new(BangProcMacro { client })));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue