X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_expand%2Fsrc%2Fbase.rs;h=bb671b8705eb3d3fcd4ff6bb2ec28f737325ed33;hb=e40d5e83dc133d093c22c7ff016b10daa4f40dcf;hp=e48ce60218525aff6e0ba978f5b74acf7d4582ae;hpb=8eb4fc60579cc2138adbf6eaeb86ccfeefc81713;p=rust.git diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs index e48ce602185..bb671b8705e 100644 --- a/compiler/rustc_expand/src/base.rs +++ b/compiler/rustc_expand/src/base.rs @@ -266,7 +266,7 @@ fn expand( } } -pub trait ProcMacro { +pub trait BangProcMacro { fn expand<'cx>( &self, ecx: &'cx mut ExtCtxt<'_>, @@ -275,7 +275,7 @@ fn expand<'cx>( ) -> Result; } -impl ProcMacro for F +impl BangProcMacro for F where F: Fn(TokenStream) -> TokenStream, { @@ -640,7 +640,7 @@ pub enum SyntaxExtensionKind { /// A token-based function-like macro. Bang( /// An expander with signature TokenStream -> TokenStream. - Box, + Box, ), /// An AST-based function-like macro.