This commit is contained in:
Ralf Jung 2019-06-06 12:52:01 +02:00
parent b823cc1ece
commit 0edf46f7d1

View file

@ -307,9 +307,9 @@ trait Qualif {
/// Constant containing interior mutability (`UnsafeCell<T>`).
/// This must be ruled out to make sure that evaluating the constant at compile-time
/// and 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.
/// 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.
struct HasMutInterior;
impl Qualif for HasMutInterior {