about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-09-12 13:11:55 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-09-13 15:33:21 +1000
commit7b613ed8d2b012c40cf326314b4b025141474f30 (patch)
tree7383b892a6389b1ac154e0dbbaa7bf9e5354c03d
parent65863c5e7558f836e5249489ec9ba7e83be87ccf (diff)
downloadrust-7b613ed8d2b012c40cf326314b4b025141474f30.tar.gz
rust-7b613ed8d2b012c40cf326314b4b025141474f30.zip
Remove unnecessary lifetimes from `rustc_expand`.
-rw-r--r--compiler/rustc_expand/src/proc_macro.rs8
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,