From e1e4df1f971950dd56d49a8b863d8888768633fa Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 21 Sep 2026 18:21:58 +0200 Subject: build: disable polonius in fast compilation cargo config --- .cargo/config-nightly-fast-compile.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.cargo/config-nightly-fast-compile.toml b/.cargo/config-nightly-fast-compile.toml index 359e004..f63e319 100644 --- a/.cargo/config-nightly-fast-compile.toml +++ b/.cargo/config-nightly-fast-compile.toml @@ -8,9 +8,16 @@ debug = "line-tables-only" codegen-backend = "cranelift" [build] -rustflags = ["-Zthreads=16"] rustc-wrapper = "sccache" [target.'cfg(unix)'] linker = "clang" -rustflags = ["-Clink-arg=--ld-path=wild"] +rustflags = [ + "-Clink-arg=--ld-path=wild", + "-Zthreads=8", + + # Because Polonius is currently only enabled in nightly Rust, it is disabled here so + # that certain borrowing related compilation errors does not only occur when this + # config is not used + "-Zpolonius=off", +] -- cgit v1.2.3-18-g5258