Skip to content

Extremely slow while compiling pulldown-cmark with RUSTFLAGS="-Zpolonius" #138102

@Neutron3529

Description

@Neutron3529

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

No one assigned

    Labels

    C-bugCategory: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.NLL-performantWorking towards the "performance is good" goalNLL-poloniusIssues related for using Polonius in the borrow checkerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions