mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 23:24:29 +00:00
Auto merge of #13753 - kdy1:limit, r=lnicola
fix: Increase token limit of proc macro Fixes #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">
This commit is contained in:
commit
15fb082cc1
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ use crate::{
|
|||
/// an error will be emitted.
|
||||
///
|
||||
/// Actual max for `analysis-stats .` at some point: 30672.
|
||||
static TOKEN_LIMIT: Limit = Limit::new(524_288);
|
||||
static TOKEN_LIMIT: Limit = Limit::new(1_048_576);
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub enum TokenExpander {
|
||||
|
|
Loading…
Reference in a new issue