Add test, remove printlns

This commit is contained in:
Florian Diebold
2020-03-15 11:26:54 +01:00
parent c32529ddd0
commit 035db0fbb9
4 changed files with 53 additions and 3 deletions

View File

@@ -206,7 +206,6 @@ fn macro_expand_with_arg(
};
let (tt, err) = macro_rules.0.expand(db, lazy_id, &macro_arg.0);
// Set a hard limit for the expanded tt
eprintln!("expansion size: {}", tt.count());
let count = tt.count();
if count > 65536 {
return (None, Some(format!("Total tokens count exceed limit : count = {}", count)));