Skip to content
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

Plumb inference obligations through selection (alternative) #33451

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Don't commit when assembling candidates
Candidate assembly during selection should not affect the inference
context.
  • Loading branch information
soltanmm-google committed Apr 30, 2016
commit b7caae30c7389c3b92a8399577e007116c28f075
2 changes: 1 addition & 1 deletion src/librustc/traits/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
return;
}

self.infcx.commit_if_ok(|snapshot| {
self.infcx.probe(|snapshot| {
let (self_ty, _) =
self.infcx().skolemize_late_bound_regions(&obligation.self_ty(), snapshot);
let poly_trait_ref = match self_ty.sty {
Expand Down