Skip to content

Commit c0e6a15

Browse files
spastorinoPaul Daniel Faria
authored andcommitted
sup_def is a mutable reference
1 parent 2720f63 commit c0e6a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/nll/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl InferenceContext {
9393
changed = false;
9494
for constraint in &self.constraints {
9595
let sub = &self.definitions[constraint.sub].value.clone();
96-
let sup_def = &self.definitions[constraint.sup];
96+
let sup_def = &mut self.definitions[constraint.sup];
9797
debug!("constraint: {:?}", constraint);
9898
debug!(" sub (before): {:?}", sub);
9999
debug!(" sup (before): {:?}", sup_def.value);

0 commit comments

Comments
 (0)