-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
-Ztrait-solver=next: stop depending on old solver #113317
Conversation
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
ty::GenericArgKind::Type(ty_a) => { | ||
let ty_a = ocx.infcx.resolve_vars_if_possible(ty_a); | ||
let mut ty_a = ocx.infcx.resolve_vars_if_possible(ty_a); | ||
// Need to manually normalize in the new solver as `wf::obligations` does not. |
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.
Why isn't that done? I see that you're bailing out in WfPredicates::normalize
, but not why
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.
extended the comment in wf.rs
, the reasons are
- the new solver can only deeply normalize if there is no ambiguity, so there is nothing we could use in
wf
- we never have to normalize obligations in the new solver, but we do have to normalize the inputs to region solving
@bors r+ |
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#113010 (rust-installer & rls: remove exclusion from rustfmt & tidy ) - rust-lang#113317 ( -Ztrait-solver=next: stop depending on old solver) - rust-lang#113319 (`TypeParameterDefinition` always require a `DefId`) - rust-lang#113320 (Add some extra information to opaque type cycle errors) - rust-lang#113321 (Move `ty::ConstKind` to `rustc_type_ir`) - rust-lang#113337 (Winnow specialized impls during selection in new solver) - rust-lang#113355 (Move most coverage code out of `rustc_codegen_ssa`) - rust-lang#113356 (Add support for NetBSD/riscv64 aka. riscv64gc-unknown-netbsd.) r? `@ghost` `@rustbot` modify labels: rollup
@rust-timer build 3cfc22c1d7b73b6e6f271d624b47ed04b02eb208 |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (3cfc22c1d7b73b6e6f271d624b47ed04b02eb208): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 655.622s -> 658.311s (0.41%) |
removes the final dependencies on the old solver when
-Ztrait-solver=next
is enabled.