Don't mutate syntax trees when preparing proc-macro input

This commit is contained in:
Lukas Wirth 2021-08-25 18:57:24 +02:00
parent ce4670f299
commit d6134b6802
7 changed files with 58 additions and 136 deletions

View file

@ -67,7 +67,7 @@ impl fmt::Display for ExpandError {
pub use crate::{
syntax_bridge::{
parse_exprs_with_sep, parse_to_token_tree, syntax_node_to_token_tree,
token_tree_to_syntax_node,
syntax_node_to_token_tree_censored, token_tree_to_syntax_node,
},
token_map::TokenMap,
};