Compile time regression with the new trait solver and diesel #131231
Labels
C-bug
Category: This is a bug.
I-compiletime
Issue: Problems and improvements with respect to compile times.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
WG-trait-system-refactor
The Rustc Trait System Refactor Initiative (-Znext-solver)
I tried this code: diesel-rs/diesel@381be19 with both
RUSTFLAGS=-Znext-solver=globally
set and not setI expected to see this happen: Code compiles similar fast with both combinations
Instead, this happened:
RUSTFLAGS=-Znext-solver=globally
results in the code compiling takes over 10 times as long. For me the compiler takes ~10s to compile diesel from scratch with the old trait solver. The same operation takes 1:53 min, so over 10 times of what the old trait solver needed.Meta
rustc --version --verbose
:@rustbot label +I-compiletime +WG-trait-system-refactor
The text was updated successfully, but these errors were encountered: