mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Don't create empty path nodes
This commit is contained in:
parent
b6fc9c14ac
commit
caba872f88
6 changed files with 26 additions and 24 deletions
|
@ -327,10 +327,10 @@ impl Marker {
|
|||
self.bomb.defuse();
|
||||
let idx = self.pos as usize;
|
||||
if idx == p.events.len() - 1 {
|
||||
match p.events.pop() {
|
||||
Some(Event::Start { kind: TOMBSTONE, forward_parent: None }) => (),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
assert!(matches!(
|
||||
p.events.pop(),
|
||||
Some(Event::Start { kind: TOMBSTONE, forward_parent: None })
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue