From 146eda102a5d0241c96a808a847f3b855340765e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 11 Feb 2021 19:26:47 +0100 Subject: =?UTF-8?q?Move=20span=20directly=20into=20diagnostics=20?= =?UTF-8?q?=F0=9F=9A=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parse/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse/mod.rs') diff --git a/src/parse/mod.rs b/src/parse/mod.rs index e7e25a1d..8780efaf 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -22,7 +22,7 @@ use collection::{args, parenthesized}; /// Parse a string of source code. pub fn parse(src: &str) -> Pass { let mut p = Parser::new(src); - Pass::new(tree(&mut p), p.finish()) + Pass::new(tree(&mut p), p.diags) } /// Parse a syntax tree. -- cgit v1.2.3