diff options
author | Florian Diebold <[email protected]> | 2020-03-15 10:26:54 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2020-03-16 17:38:19 +0000 |
commit | 035db0fbb94e35c78cc76798844db06bd6ad8451 (patch) | |
tree | 43e1efbd8357bbaa2f78958f505e771ad55ea264 /crates/ra_mbe/src | |
parent | c32529ddd0d66a219226dd63da2d4b1825375c0e (diff) |
Add test, remove printlns
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r-- | crates/ra_mbe/src/mbe_expander.rs | 1 | ||||
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 1 |
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; | |||
11 | use crate::{ExpandError, ExpandResult}; | 11 | use crate::{ExpandError, ExpandResult}; |
12 | 12 | ||
13 | pub(crate) fn expand(rules: &crate::MacroRules, input: &tt::Subtree) -> ExpandResult<tt::Subtree> { | 13 | pub(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(), |