Skip to content

Commit 38c7f3e

Browse files
committed
comments
1 parent 4dbd279 commit 38c7f3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_mir/transform/qualify_consts.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ trait Qualif {
307307

308308
/// Constant containing interior mutability (`UnsafeCell<T>`).
309309
/// This must be ruled out to make sure that evaluating the constant at compile-time
310-
/// and run-time would produce the same result. In particular, promotion of temporaries
311-
/// must not change program behavior; if the promoted could be written to, that would
312-
/// be a problem.
310+
/// and at *any point* during the run-time would produce the same result. In particular,
311+
/// promotion of temporaries must not change program behavior; if the promoted could be
312+
/// written to, that would be a problem.
313313
struct HasMutInterior;
314314

315315
impl Qualif for HasMutInterior {

0 commit comments

Comments
 (0)