mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
internal: more macro tests
This commit is contained in:
parent
7de4b964a9
commit
7989d567e2
5 changed files with 76 additions and 22 deletions
|
@ -67,6 +67,7 @@ pub fn token_tree_to_syntax_node(
|
|||
}
|
||||
}
|
||||
if tree_sink.roots.len() != 1 {
|
||||
cov_mark::hit!(expansion_does_not_parse_as_expression);
|
||||
return Err(ExpandError::ConversionError);
|
||||
}
|
||||
//FIXME: would be cool to report errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue