Factor out repeated code from eat_dollar
.
This commit is contained in:
parent
c82d5865f2
commit
fd83954d66
1 changed files with 1 additions and 2 deletions
|
@ -275,8 +275,7 @@ fn eat_dollar<'psess>(
|
|||
psess: &'psess ParseSess,
|
||||
span: Span,
|
||||
) -> PResult<'psess, ()> {
|
||||
if let Some(TokenTree::Token(Token { kind: token::Dollar, .. }, _)) = iter.peek() {
|
||||
let _ = iter.next();
|
||||
if try_eat_dollar(iter) {
|
||||
return Ok(());
|
||||
}
|
||||
Err(psess.dcx().struct_span_err(
|
||||
|
|
Loading…
Add table
Reference in a new issue