diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index dcc038bcd8d6..710694a3479f 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs @@ -223,7 +223,7 @@ fn macro_expand_with_arg( let ExpandResult(tt, err) = macro_rules.0.expand(db, lazy_id, ¯o_arg.0); // Set a hard limit for the expanded tt let count = tt.count(); - if count > 65536 { + if count > 262144 { return (None, Some(format!("Total tokens count exceed limit : count = {}", count))); } (Some(Arc::new(tt)), err.map(|e| format!("{:?}", e)))