Skip to content

Commit

Permalink
Fix proc-macro test after internal API change
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Nov 23, 2018
1 parent c45871b commit 950a3ed
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -46,8 +46,8 @@ fn expand_mbe_matches(cx: &mut ExtCtxt, _: Span, args: &[TokenTree])
NodeId::from_u32(0));
let map = match TokenTree::parse(cx, &mbe_matcher, args.iter().cloned().collect()) {
Success(map) => map,
Failure(_, tok) => {
panic!("expected Success, but got Failure: {}", parse_failure_msg(tok));
Failure(_, tok, msg) => {
panic!("expected Success, but got Failure: {} - {}", parse_failure_msg(tok), msg);
}
Error(_, s) => {
panic!("expected Success, but got Error: {}", s);
Expand Down

0 comments on commit 950a3ed

Please sign in to comment.