From 87397080b697384a9dfb42993c86a0d17182b85a Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Wed, 23 Dec 2020 21:11:59 +0900 Subject: [PATCH 1/1] Fix typo in simplify_try.rs assigment -> assignment --- compiler/rustc_mir/src/transform/simplify_try.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_mir/src/transform/simplify_try.rs b/compiler/rustc_mir/src/transform/simplify_try.rs index bea95bf43d2..a3459887a9a 100644 --- a/compiler/rustc_mir/src/transform/simplify_try.rs +++ b/compiler/rustc_mir/src/transform/simplify_try.rs @@ -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; -- 2.44.0