Fix impl trait params not being counted properly

This commit is contained in:
Lukas Wirth 2024-05-02 13:56:10 +02:00
parent 8241d8a0b8
commit c97ac34caa
3 changed files with 33 additions and 4 deletions

View file

@ -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 {