mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Remove dead code
This commit is contained in:
parent
fd06fe7b13
commit
6b49e774e2
1 changed files with 4 additions and 7 deletions
|
@ -282,13 +282,10 @@ fn name_ref(p: &mut Parser) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn name_ref_or_index(p: &mut Parser) {
|
fn name_ref_or_index(p: &mut Parser) {
|
||||||
if p.at(IDENT) || p.at(INT_NUMBER) {
|
assert!(p.at(IDENT) || p.at(INT_NUMBER));
|
||||||
let m = p.start();
|
let m = p.start();
|
||||||
p.bump_any();
|
p.bump_any();
|
||||||
m.complete(p, NAME_REF);
|
m.complete(p, NAME_REF);
|
||||||
} else {
|
|
||||||
p.err_and_bump("expected identifier");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn error_block(p: &mut Parser, message: &str) {
|
fn error_block(p: &mut Parser, message: &str) {
|
||||||
|
|
Loading…
Reference in a new issue