Skip to content

Commit 754b4c9

Browse files
bors[bot]matklad
andauthored
Merge #5926
5926: Bump token expansion limit r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 5b21c7b + 7f54ded commit 754b4c9

File tree

1 file changed

+1
-1
lines changed
  • crates/hir_expand/src

1 file changed

+1
-1
lines changed

crates/hir_expand/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ fn macro_expand_with_arg(
223223
let ExpandResult(tt, err) = macro_rules.0.expand(db, lazy_id, &macro_arg.0);
224224
// Set a hard limit for the expanded tt
225225
let count = tt.count();
226-
if count > 65536 {
226+
if count > 262144 {
227227
return (None, Some(format!("Total tokens count exceed limit : count = {}", count)));
228228
}
229229
(Some(Arc::new(tt)), err.map(|e| format!("{:?}", e)))

0 commit comments

Comments
 (0)