diff options
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 37320e1ba..6574eeed1 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -92,8 +92,9 @@ impl SourceFile { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | pub fn parse2(text: &str) -> Parse { | 94 | pub fn parse2(text: &str) -> Parse { |
95 | let (green, errors) = parsing::parse_text(text); | 95 | let (green, mut errors) = parsing::parse_text(text); |
96 | let tree = SourceFile::new(green); | 96 | let tree = SourceFile::new(green); |
97 | errors.extend(validation::validate(&tree)); | ||
97 | Parse { tree, errors: Arc::new(errors) } | 98 | Parse { tree, errors: Arc::new(errors) } |
98 | } | 99 | } |
99 | 100 | ||