From 1cece9f219016152b2e8bc6194fb7f44a441c6db Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 5 May 2019 11:34:39 +0300 Subject: return errors from tree builder --- crates/ra_mbe/src/syntax_bridge.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_mbe/src') diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index c0a3fec35..4639baa38 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs @@ -56,8 +56,9 @@ where if tree_sink.roots.len() != 1 { return Err(ExpandError::ConversionError); } - - Ok(tree_sink.inner.finish()) + //FIXME: would be cool to report errors + let (tree, _errors) = tree_sink.inner.finish(); + Ok(tree) } /// Parses the token tree (result of macro expansion) to an expression -- cgit v1.2.3