Skip to content

Commit 7f54ded

Browse files
committed
Bump token expansion limit
We hit this for redis crate, reported at Reported at https://www.reddit.com/r/rust/comments/ikfsf8/rustanalyzer_doesnt_work_with_the_redis_crate/
1 parent 5b21c7b commit 7f54ded

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)