return errors from tree builder

This commit is contained in:
Aleksey Kladov 2019-05-05 11:34:39 +03:00
parent 90926b9479
commit 1cece9f219
2 changed files with 6 additions and 5 deletions

View file

@ -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