1
Fork 0

Rollup merge of #80330 - eltociear:patch-2, r=lcnr

Fix typo in simplify_try.rs

assigment -> assignment
This commit is contained in:
Dylan DPC 2020-12-25 03:39:46 +01:00 committed by GitHub
commit 704f81e3cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ fn optimization_applies<'tcx>(
return false; 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() { if opt_info.field_tmp_assignments.is_empty() {
trace!("NO: no assignments found"); trace!("NO: no assignments found");
return false; return false;