Skip to content

Commit

Permalink
Rollup merge of #80330 - eltociear:patch-2, r=lcnr
Browse files Browse the repository at this point in the history
Fix typo in simplify_try.rs

assigment -> assignment
  • Loading branch information
Dylan-DPC committed Dec 25, 2020
2 parents 2dab627 + 8739708 commit 704f81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/transform/simplify_try.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ fn optimization_applies<'tcx>(
return false;
}

// Verify the assigment chain consists of the form b = a; c = b; d = c; etc...
// Verify the assignment chain consists of the form b = a; c = b; d = c; etc...
if opt_info.field_tmp_assignments.is_empty() {
trace!("NO: no assignments found");
return false;
Expand Down

0 comments on commit 704f81e

Please sign in to comment.