Skip to content

Commit

Permalink
Rollup merge of rust-lang#62319 - ia0:fix_kleene, r=petrochenkov
Browse files Browse the repository at this point in the history
Fix mismatching Kleene operators
  • Loading branch information
Mark-Simulacrum committed Jul 3, 2019
2 parents 5a507d8 + dd702cc commit 1ad66ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libcore/tests/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ macro_rules! assert_none {
stringify!($what), b);
}
}
)*
)+
}};
($what:ident, $($str:tt),+,) => (assert_none!($what,$($str),+))
}
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/tests/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::str::pattern::*;
macro_rules! search_asserts {
($haystack:expr, $needle:expr, $testname:expr, [$($func:ident),*], $result:expr) => {
let mut searcher = $needle.into_searcher($haystack);
let arr = [$( Step::from(searcher.$func()) ),+];
let arr = [$( Step::from(searcher.$func()) ),*];
assert_eq!(&arr[..], &$result, $testname);
}
}
Expand Down

0 comments on commit 1ad66ed

Please sign in to comment.