Fix proc-macro test after internal API change
This commit is contained in:
parent
c45871ba02
commit
950a3edf27
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue