Skip to content

Commit 9ff695d

Browse files
authored
Unrolled build for #149302
Rollup merge of #149302 - zjumathcode:main, r=jackh726 Fix comment wording in simplify_comparison_integral.rs This change corrects the wording in a comment within `simplify_comparison_integral.rs`, changing "user" to "used" to accurately describe that a moved value cannot be used later on. The adjustment improves code documentation clarity while maintaining consistency with our standards for precise terminology in comments.
2 parents 0f6dae4 + d8c9d70 commit 9ff695d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/simplify_comparison_integral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<'tcx> crate::MirPass<'tcx> for SimplifyComparisonIntegral {
7474
}
7575

7676
// delete comparison statement if it the value being switched on was moved, which means
77-
// it can not be user later on
77+
// it can not be used later on
7878
if opt.can_remove_bin_op_stmt {
7979
bb.statements[opt.bin_op_stmt_idx].make_nop(true);
8080
} else {

0 commit comments

Comments
 (0)