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
1 changed files with 1 additions and 1 deletions

View File

@ -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;