We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dbd279 commit 38c7f3eCopy full SHA for 38c7f3e
src/librustc_mir/transform/qualify_consts.rs
@@ -307,9 +307,9 @@ trait Qualif {
307
308
/// Constant containing interior mutability (`UnsafeCell<T>`).
309
/// 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.
+/// and at *any point* during the run-time would produce the same result. In particular,
+/// promotion of temporaries must not change program behavior; if the promoted could be
+/// written to, that would be a problem.
313
struct HasMutInterior;
314
315
impl Qualif for HasMutInterior {
0 commit comments