diff options
author | Aleksey Kladov <[email protected]> | 2019-05-05 09:34:39 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-28 14:26:14 +0100 |
commit | 1cece9f219016152b2e8bc6194fb7f44a441c6db (patch) | |
tree | 8012db3e26498105f94c808cb69958054dd0a2b7 /crates/ra_mbe/src | |
parent | 90926b9479a0403f7a5d8a94af876d88d42a8237 (diff) |
return errors from tree builder
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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 | |||
56 | if tree_sink.roots.len() != 1 { | 56 | if tree_sink.roots.len() != 1 { |
57 | return Err(ExpandError::ConversionError); | 57 | return Err(ExpandError::ConversionError); |
58 | } | 58 | } |
59 | 59 | //FIXME: would be cool to report errors | |
60 | Ok(tree_sink.inner.finish()) | 60 | let (tree, _errors) = tree_sink.inner.finish(); |
61 | Ok(tree) | ||
61 | } | 62 | } |
62 | 63 | ||
63 | /// Parses the token tree (result of macro expansion) to an expression | 64 | /// Parses the token tree (result of macro expansion) to an expression |