Skip to content

Commit f4fe9b0

Browse files
committed
Clarify exclusion comment further
1 parent 4dc0287 commit f4fe9b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/transform/qualify_consts.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ impl<'a, 'tcx> Visitor<'tcx> for Qualifier<'a, 'tcx, 'tcx> {
982982
// Since the argument is required to be constant,
983983
// we care about constness, not promotability.
984984
// If we checked for promotability, we'd miss out on
985-
// the results of function calls (which are never promoted)
985+
// the results of function calls (which are never promoted
986+
// in runtime code)
986987
// This is not a problem, because the argument explicitly
987988
// requests constness, in contrast to regular promotion
988989
// which happens even without the user requesting it.

0 commit comments

Comments
 (0)