mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-05 01:50:37 +00:00
drop error from SOurceFile constructor
This commit is contained in:
parent
1cece9f219
commit
afeaea7051
2 changed files with 5 additions and 5 deletions
|
@ -383,7 +383,7 @@ impl SyntaxNode {
|
|||
let len = new_children.iter().map(|it| it.text_len()).sum::<TextUnit>();
|
||||
let new_node = GreenNode::new(rowan::SyntaxKind(self.kind() as u16), new_children);
|
||||
let new_file_node = self.replace_with(new_node);
|
||||
let file = SourceFile::new(new_file_node, Vec::new());
|
||||
let file = SourceFile::new(new_file_node);
|
||||
|
||||
// FIXME: use a more elegant way to re-fetch the node (#1185), make
|
||||
// `range` private afterwards
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue