mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Fix impl trait params not being counted properly
This commit is contained in:
parent
8241d8a0b8
commit
c97ac34caa
3 changed files with 33 additions and 4 deletions
|
@ -13,6 +13,17 @@ use crate::cli::flags;
|
|||
|
||||
impl flags::Diagnostics {
|
||||
pub fn run(self) -> anyhow::Result<()> {
|
||||
const STACK_SIZE: usize = 1024 * 1024 * 8;
|
||||
|
||||
let handle = stdx::thread::Builder::new(stdx::thread::ThreadIntent::LatencySensitive)
|
||||
.name("BIG_STACK_THREAD".into())
|
||||
.stack_size(STACK_SIZE)
|
||||
.spawn(|| self.run_())
|
||||
.unwrap();
|
||||
|
||||
handle.join()
|
||||
}
|
||||
fn run_(self) -> anyhow::Result<()> {
|
||||
let cargo_config =
|
||||
CargoConfig { sysroot: Some(RustLibSource::Discover), ..Default::default() };
|
||||
let with_proc_macro_server = if let Some(p) = &self.proc_macro_srv {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue