mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
make token set a const-fn
This commit is contained in:
parent
b028472481
commit
b82fe73d1a
8 changed files with 52 additions and 57 deletions
|
@ -112,7 +112,7 @@ impl<'t> Parser<'t> {
|
|||
|
||||
/// Create an error node and consume the next token.
|
||||
pub(crate) fn err_and_bump(&mut self, message: &str) {
|
||||
self.err_recover(message, TokenSet::EMPTY);
|
||||
self.err_recover(message, TokenSet::empty());
|
||||
}
|
||||
|
||||
/// Create an error node and consume the next token.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue