mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
return errors from tree builder
This commit is contained in:
parent
90926b9479
commit
1cece9f219
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue