Skip to content

Commit 4dbd279

Browse files
committed
const-correctness might be confusing for C++ people
1 parent 7e96bd0 commit 4dbd279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/qualify_consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ impl ConstCx<'_, 'tcx> {
618618
}
619619
}
620620

621-
/// Checks MIR for const-correctness, using `ConstCx`
621+
/// Checks MIR for being admissible as a compile-time constant, using `ConstCx`
622622
/// for value qualifications, and accumulates writes of
623623
/// rvalue/call results to locals, in `local_qualif`.
624624
/// It also records candidates for promotion in `promotion_candidates`,

0 commit comments

Comments
 (0)