Open programmerjake opened 1 month ago
@rustbot label -needs-triage +I-slow +A-mir +A-borrow-checker +T-compiler
can you simplify this to a single crate that reproduces your issue? then we can run rustc-perf on it and see which queries are actually at fault, since -Ztime-passes is very coarse in its grouping and can include a lot of trait solving and const eval time
I tried this code:
https://git.libre-chip.org/libre-chip/fayalite/src/commit/25aa90ec603acdc49a984588e75ba62d7f16b5c4
I expected to see this happen: compile in a reasonably short time
Instead, this happened: running
cargo +nightly rustc -p fayalite -- -Z time-passes
gives small times for everything except:I'm running on a Ryzen 9 7950X so this isn't just a slow cpu.
Meta
rustc --version --verbose
:compilation is also quite slow on 1.79.0 stable, using
RUSTC_BOOTSTRAP=1 cargo rustc -p fayalite -- -Z time-passes
: