aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand
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_hir_expand
parentc32529ddd0d66a219226dd63da2d4b1825375c0e (diff)
Add test, remove printlns
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r--crates/ra_hir_expand/src/db.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs
index ad4a0732e..f1918817e 100644
--- a/crates/ra_hir_expand/src/db.rs
+++ b/crates/ra_hir_expand/src/db.rs
@@ -206,7 +206,6 @@ fn macro_expand_with_arg(
206 }; 206 };
207 let (tt, err) = macro_rules.0.expand(db, lazy_id, &macro_arg.0); 207 let (tt, err) = macro_rules.0.expand(db, lazy_id, &macro_arg.0);
208 // Set a hard limit for the expanded tt 208 // Set a hard limit for the expanded tt
209 eprintln!("expansion size: {}", tt.count());
210 let count = tt.count(); 209 let count = tt.count();
211 if count > 65536 { 210 if count > 65536 {
212 return (None, Some(format!("Total tokens count exceed limit : count = {}", count))); 211 return (None, Some(format!("Total tokens count exceed limit : count = {}", count)));