We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
optimization_applies()
1 parent 24bfdc9 commit e16d6a6Copy full SHA for e16d6a6
src/librustc_mir/transform/simplify_try.rs
@@ -302,6 +302,7 @@ fn optimization_applies<'tcx>(
302
// Verify the assigment chain consists of the form b = a; c = b; d = c; etc...
303
if opt_info.field_tmp_assignments.is_empty() {
304
trace!("NO: no assignments found");
305
+ return false;
306
}
307
let mut last_assigned_to = opt_info.field_tmp_assignments[0].1;
308
let source_local = last_assigned_to;
0 commit comments