From 88ec764ae1fed4481b9f745735be0ddf43b8f516 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 10 Sep 2019 14:28:00 +0200 Subject: Add dummy `entrypoint` attribute --- pest_consume_macros/src/make_parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pest_consume_macros') diff --git a/pest_consume_macros/src/make_parser.rs b/pest_consume_macros/src/make_parser.rs index c0594a5..9de2f6f 100644 --- a/pest_consume_macros/src/make_parser.rs +++ b/pest_consume_macros/src/make_parser.rs @@ -155,6 +155,13 @@ fn apply_special_attrs(f: &mut ParsedFn, rule_enum: &Ident) -> Result<()> { #function ); + // `prec_climb` attr + let _: () = function + .attrs + .drain_filter(|attr| attr.path.is_ident("entrypoint")) + .map(|_| ()) + .collect(); + // `prec_climb` attr let prec_climb_attrs: Vec<_> = function .attrs -- cgit v1.2.3