-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed as not planned
Closed as not planned
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.NLL-performantWorking towards the "performance is good" goalWorking towards the "performance is good" goalNLL-poloniusIssues related for using Polonius in the borrow checkerIssues related for using Polonius in the borrow checkerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I tried this code:
$ cargo clean && RUSTFLAGS="-Zpolonius" cargo check --timings && mv target/cargo-timings/cargo-timing.html ./cargo-timing-polonius.html
I expected to see this happen: The check finishes in several seconds
Instead, this happened: The check finishes after 10 minutes.
Meta
rustc --version --verbose
:
rustc 1.87.0-nightly (f4a216d28 2025-03-02)
binary: rustc
commit-hash: f4a216d28ee635afce685b4206e713579f66e130
commit-date: 2025-03-02
host: x86_64-unknown-linux-gnu
release: 1.87.0-nightly
LLVM version: 20.1.0
Details
issue #75858 already said something about a slow compile with `-Zpolonius`, but such problem might not be solved (at least there's still some code that needs several minutes to compile with polonius.)I've create a PR in rust-lang/polonius, but it seems that crate has been inactive for long. Thus I re-submit this PR here.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.NLL-performantWorking towards the "performance is good" goalWorking towards the "performance is good" goalNLL-poloniusIssues related for using Polonius in the borrow checkerIssues related for using Polonius in the borrow checkerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.