Revert parsing bug introduced in commit 43bfefc1b2.

This commit is contained in:
Sergio Benitez 2016-08-25 19:02:26 -07:00
parent 81bc2466eb
commit a5e1f8246c
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ impl<'s, 'a, 'c> Iterator for ParamIter<'s, 'a, 'c> {
if param.len() == 0 { if param.len() == 0 {
self.ctxt.span_err(param_span, "Parameter names cannot be empty."); self.ctxt.span_err(param_span, "Parameter names cannot be empty.");
None 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."); self.ctxt.span_err(param_span, "Parameters must be alphanumeric.");
None None
} else { } else {