aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/ast')
-rw-r--r--crates/libsyntax2/src/ast/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/ast/mod.rs b/crates/libsyntax2/src/ast/mod.rs
index 46509b5ec..5b9a07db4 100644
--- a/crates/libsyntax2/src/ast/mod.rs
+++ b/crates/libsyntax2/src/ast/mod.rs
@@ -46,7 +46,7 @@ impl ParsedFile {
46 File::cast(self.syntax()).unwrap() 46 File::cast(self.syntax()).unwrap()
47 } 47 }
48 pub fn syntax(&self) -> SyntaxNodeRef { 48 pub fn syntax(&self) -> SyntaxNodeRef {
49 self.root.as_ref() 49 self.root.borrowed()
50 } 50 }
51 pub fn errors(&self) -> Vec<SyntaxError> { 51 pub fn errors(&self) -> Vec<SyntaxError> {
52 self.syntax().root.syntax_root().errors.clone() 52 self.syntax().root.syntax_root().errors.clone()