Skip to content
Permalink
Browse files

comments

  • Loading branch information...
RalfJung committed Jun 6, 2019
1 parent b823cc1 commit 0edf46f7d1db0f09dc07bf93ed466ea067d50054
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/librustc_mir/transform/qualify_consts.rs
@@ -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 {

0 comments on commit 0edf46f

Please sign in to comment.
You can’t perform that action at this time.