Remove unnecessary lifetimes from rustc_expand.

This commit is contained in:
Nicholas Nethercote 2024-09-12 13:11:55 +10:00
parent 65863c5e75
commit 7b613ed8d2

View File

@ -43,9 +43,9 @@ pub struct BangProcMacro {
} }
impl base::BangProcMacro for BangProcMacro { impl base::BangProcMacro for BangProcMacro {
fn expand<'cx>( fn expand(
&self, &self,
ecx: &'cx mut ExtCtxt<'_>, ecx: &mut ExtCtxt<'_>,
span: Span, span: Span,
input: TokenStream, input: TokenStream,
) -> Result<TokenStream, ErrorGuaranteed> { ) -> Result<TokenStream, ErrorGuaranteed> {
@ -73,9 +73,9 @@ pub struct AttrProcMacro {
} }
impl base::AttrProcMacro for AttrProcMacro { impl base::AttrProcMacro for AttrProcMacro {
fn expand<'cx>( fn expand(
&self, &self,
ecx: &'cx mut ExtCtxt<'_>, ecx: &mut ExtCtxt<'_>,
span: Span, span: Span,
annotation: TokenStream, annotation: TokenStream,
annotated: TokenStream, annotated: TokenStream,