-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Resolve vars in result from scrape_region_constraints
#112196
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
Conversation
@@ -1,6 +1,6 @@ | |||
// run-pass | |||
// If `Index` used an associated type for its output, this test would |
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.
Index
does use an associated type in the ... 8? years since this test was written 😁
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.
r=me after a style nit
Op: super::TypeOp<'tcx, Output = R>, | ||
R: TypeFoldable<TyCtxt<'tcx>>, |
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.
can you move that to where bounds instead?
1746fbe
to
979379a
Compare
moved bounds to where clauses @bors r=lcnr |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#112081 (Avoid ICE on `#![doc(test(...)]` with literal parameter) - rust-lang#112196 (Resolve vars in result from `scrape_region_constraints`) - rust-lang#112303 (Normalize in infcx instead of globally for `Option::as_deref` suggestion) - rust-lang#112316 (Ensure space is inserted after keyword in `unused_delims`) - rust-lang#112318 (Merge method, type and const object safety checks) - rust-lang#112322 (Don't mention `IMPLIED_BOUNDS_ENTAILMENT` if signatures reference error) Failed merges: - rust-lang#112251 (rustdoc: convert `if let Some()` that always matches to variable) r? `@ghost` `@rustbot` modify labels: rollup
Since we perform
type_op::Normalize
in the local infcx when the new solver is enabled, vars aren't necessarily resolved, which triggers this ICE:rust/compiler/rustc_infer/src/infer/nll_relate/mod.rs
Line 481 in f85ab54
There are more tests that go from ICE -> pass due to this change, but I just added revisions to a few for CI.
r? @lcnr