mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Add back missing assert
This commit is contained in:
parent
763569017a
commit
1afde29adb
1 changed files with 3 additions and 2 deletions
|
@ -209,6 +209,7 @@ impl_froms!(TokenTree: Leaf, Subtree);
|
||||||
|
|
||||||
pub(crate) fn assert_expansion(rules: &MacroRules, invocation: &str, expansion: &str) {
|
pub(crate) fn assert_expansion(rules: &MacroRules, invocation: &str, expansion: &str) {
|
||||||
let expanded = expand(rules, invocation);
|
let expanded = expand(rules, invocation);
|
||||||
|
assert_eq!(expanded.to_string(), expansion);
|
||||||
|
|
||||||
let tree = token_tree_to_macro_items(&expanded);
|
let tree = token_tree_to_macro_items(&expanded);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue