aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-03-15 10:26:54 +0000
committerFlorian Diebold <[email protected]>2020-03-16 17:38:19 +0000
commit035db0fbb94e35c78cc76798844db06bd6ad8451 (patch)
tree43e1efbd8357bbaa2f78958f505e771ad55ea264 /crates/ra_mbe
parentc32529ddd0d66a219226dd63da2d4b1825375c0e (diff)
Add test, remove printlns
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r--crates/ra_mbe/src/mbe_expander.rs1
-rw-r--r--crates/ra_mbe/src/syntax_bridge.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs
index c2a5702f0..5fb8414b3 100644
--- a/crates/ra_mbe/src/mbe_expander.rs
+++ b/crates/ra_mbe/src/mbe_expander.rs
@@ -11,7 +11,6 @@ use rustc_hash::FxHashMap;
11use crate::{ExpandError, ExpandResult}; 11use crate::{ExpandError, ExpandResult};
12 12
13pub(crate) fn expand(rules: &crate::MacroRules, input: &tt::Subtree) -> ExpandResult<tt::Subtree> { 13pub(crate) fn expand(rules: &crate::MacroRules, input: &tt::Subtree) -> ExpandResult<tt::Subtree> {
14 eprintln!("expanding input: {:?}", input);
15 let (mut result, mut unmatched_tokens, mut unmatched_patterns, mut err) = ( 14 let (mut result, mut unmatched_tokens, mut unmatched_patterns, mut err) = (
16 tt::Subtree::default(), 15 tt::Subtree::default(),
17 usize::max_value(), 16 usize::max_value(),
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs
index 8aa3b906b..fcb73fbc7 100644
--- a/crates/ra_mbe/src/syntax_bridge.rs
+++ b/crates/ra_mbe/src/syntax_bridge.rs
@@ -73,7 +73,6 @@ pub fn token_tree_to_syntax_node(
73 tt: &tt::Subtree, 73 tt: &tt::Subtree,
74 fragment_kind: FragmentKind, 74 fragment_kind: FragmentKind,
75) -> Result<(Parse<SyntaxNode>, TokenMap), ExpandError> { 75) -> Result<(Parse<SyntaxNode>, TokenMap), ExpandError> {
76 eprintln!("token_tree_to_syntax_node {:?} as {:?}", tt, fragment_kind);
77 let tmp; 76 let tmp;
78 let tokens = match tt { 77 let tokens = match tt {
79 tt::Subtree { delimiter: None, token_trees } => token_trees.as_slice(), 78 tt::Subtree { delimiter: None, token_trees } => token_trees.as_slice(),