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