From a5e1f8246c9f989dbbb766117ca79be7390b68fe Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 25 Aug 2016 19:02:26 -0700 Subject: [PATCH] Revert parsing bug introduced in commit 43bfefc1b23b341f91e3039e83074049ad90c359. --- macros/src/meta_item_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/src/meta_item_parser.rs b/macros/src/meta_item_parser.rs index 38774bec..56afa68b 100644 --- a/macros/src/meta_item_parser.rs +++ b/macros/src/meta_item_parser.rs @@ -107,7 +107,7 @@ impl<'s, 'a, 'c> Iterator for ParamIter<'s, 'a, 'c> { if param.len() == 0 { self.ctxt.span_err(param_span, "Parameter names cannot be empty."); None - } else if param.contains(char::is_alphanumeric) { + } else if param.contains(|c: char| !c.is_alphanumeric()) { self.ctxt.span_err(param_span, "Parameters must be alphanumeric."); None } else {