Skip to content

Commit 15fb082

Browse files
committed
Auto merge of rust-lang#13753 - kdy1:limit, r=lnicola
fix: Increase token limit of proc macro Fixes rust-lang#13738 [The swc project](https://swc.rs) has lots of type definitions, and the current limit is too low for the ECMAScript/CSS visitors. [rustdoc](https://rustdoc.swc.rs/swc_ecma_visit) --- With this fix, the rust-analyzer shows trait-related actions. <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/206839269-d7a04589-7dba-449b-ad0b-1f69d52bd039.png">
2 parents cdbe025 + 4f36942 commit 15fb082

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::{
2525
/// an error will be emitted.
2626
///
2727
/// Actual max for `analysis-stats .` at some point: 30672.
28-
static TOKEN_LIMIT: Limit = Limit::new(524_288);
28+
static TOKEN_LIMIT: Limit = Limit::new(1_048_576);
2929

3030
#[derive(Debug, Clone, Eq, PartialEq)]
3131
pub enum TokenExpander {

0 commit comments

Comments
 (0)