diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-12 13:11:55 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-13 15:33:21 +1000 |
| commit | 7b613ed8d2b012c40cf326314b4b025141474f30 (patch) | |
| tree | 7383b892a6389b1ac154e0dbbaa7bf9e5354c03d | |
| parent | 65863c5e7558f836e5249489ec9ba7e83be87ccf (diff) | |
| download | rust-7b613ed8d2b012c40cf326314b4b025141474f30.tar.gz rust-7b613ed8d2b012c40cf326314b4b025141474f30.zip | |
Remove unnecessary lifetimes from `rustc_expand`.
| -rw-r--r-- | compiler/rustc_expand/src/proc_macro.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_expand/src/proc_macro.rs b/compiler/rustc_expand/src/proc_macro.rs index 24f631ed5dc..d1dcec0cc15 100644 --- a/compiler/rustc_expand/src/proc_macro.rs +++ b/compiler/rustc_expand/src/proc_macro.rs @@ -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, |
