mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-03 17:10:39 +00:00
Shrink ra_parser::Event from 32 bytes to 16 bytes
This boxes the Error variant with the assumption that it is rarely constructed
This commit is contained in:
parent
ebaa05a447
commit
ef6d53521f
3 changed files with 3 additions and 3 deletions
|
@ -70,6 +70,6 @@ impl SyntaxTreeBuilder {
|
|||
}
|
||||
|
||||
pub fn error(&mut self, error: ra_parser::ParseError, text_pos: TextSize) {
|
||||
self.errors.push(SyntaxError::new_at_offset(error.0, text_pos))
|
||||
self.errors.push(SyntaxError::new_at_offset(*error.0, text_pos))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue