-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -Ztrait-solver=next-coherence
#112122
Conversation
Some changes occurred in engine.rs, potentially modifying the public API of |
cc @rust-lang/initiative-trait-system-refactor bc of a lack of auto-ping |
Why do we need a |
I had originally wanted to make it configurable independently of intercrate mode, but yeah, currently it doesn't need to be a separate bool. |
I think that's valuable, would also expect us to e.g. move wf check and mir typeck to the new solver separately from typeck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vibe: can you change use_next_trait_solver
to next_trait_solver
? idk, use
feels somewhat redundant to me and makes stuff harder to read imo
after nits r=me
7368024
to
e036725
Compare
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
e036725
to
aabdeed
Compare
@bors r=lcnr |
Rollup of 6 pull requests Successful merges: - rust-lang#112076 (Fall back to bidirectional normalizes-to if no subst-relate candidate in alias-relate goal) - rust-lang#112122 (Add `-Ztrait-solver=next-coherence`) - rust-lang#112251 (rustdoc: convert `if let Some()` that always matches to variable) - rust-lang#112345 (fix(expand): prevent infinity loop in macro containing only "///") - rust-lang#112359 (Respect `RUST_BACKTRACE` for delayed bugs) - rust-lang#112382 (download-rustc: Fix `x test core` on MacOS) r? `@ghost` `@rustbot` modify labels: rollup
Flag that conditionally uses the trait solver only during coherence, for more testing and/or eventual partial-migration onto the trait solver (in the medium- to long-term).
r? @lcnr