Skip to content

Commit ae29fb0

Browse files
committed
Add missing arg for eat_char
1 parent 175229a commit ae29fb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/mbe/src/mbe_expander/matcher.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ impl<'a> TtIter<'a> {
357357
}
358358
}
359359

360-
pub(crate) fn eat_char(&mut self) -> Option<tt::TokenTree> {
360+
pub(crate) fn eat_char(&mut self, c: char) -> Option<tt::TokenTree> {
361361
let mut fork = self.clone();
362-
match fork.expect_char('-') {
362+
match fork.expect_char(c) {
363363
Ok(_) => {
364364
let tt = self.next().cloned();
365365
*self = fork;
@@ -460,7 +460,7 @@ fn match_meta_var(kind: &str, input: &mut TtIter) -> ExpandResult<Option<Fragmen
460460
.map(|tt| Some(tt))
461461
.map_err(|()| err!("expected lifetime")),
462462
"literal" => {
463-
let neg = input.eat_char();
463+
let neg = input.eat_char('-');
464464
input
465465
.expect_literal()
466466
.map(|literal| {

0 commit comments

Comments
 (0)