File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_expand/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ where
266
266
}
267
267
}
268
268
269
- pub trait ProcMacro {
269
+ pub trait BangProcMacro {
270
270
fn expand < ' cx > (
271
271
& self ,
272
272
ecx : & ' cx mut ExtCtxt < ' _ > ,
@@ -275,7 +275,7 @@ pub trait ProcMacro {
275
275
) -> Result < TokenStream , ErrorGuaranteed > ;
276
276
}
277
277
278
- impl < F > ProcMacro for F
278
+ impl < F > BangProcMacro for F
279
279
where
280
280
F : Fn ( TokenStream ) -> TokenStream ,
281
281
{
@@ -640,7 +640,7 @@ pub enum SyntaxExtensionKind {
640
640
/// A token-based function-like macro.
641
641
Bang (
642
642
/// An expander with signature TokenStream -> TokenStream.
643
- Box < dyn ProcMacro + sync:: Sync + sync:: Send > ,
643
+ Box < dyn BangProcMacro + sync:: Sync + sync:: Send > ,
644
644
) ,
645
645
646
646
/// An AST-based function-like macro.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub struct BangProcMacro {
17
17
pub client : pm:: bridge:: client:: Client < fn ( pm:: TokenStream ) -> pm:: TokenStream > ,
18
18
}
19
19
20
- impl base:: ProcMacro for BangProcMacro {
20
+ impl base:: BangProcMacro for BangProcMacro {
21
21
fn expand < ' cx > (
22
22
& self ,
23
23
ecx : & ' cx mut ExtCtxt < ' _ > ,
You can’t perform that action at this time.
0 commit comments