Skip to content

Commit ec7c483

Browse files
Don't mutate the inference context when assembling
1 parent 8628cce commit ec7c483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
14631463
return;
14641464
}
14651465

1466-
self.infcx.in_snapshot(|snapshot| {
1466+
self.infcx.probe(|snapshot| {
14671467
let (self_ty, _) =
14681468
self.infcx().skolemize_late_bound_regions(&obligation.self_ty(), snapshot);
14691469
let poly_trait_ref = match self_ty.sty {

0 commit comments

Comments
 (0)