Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 10, 2019
1 parent b823cc1 commit 0edf46f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_mir/transform/qualify_consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0edf46f

Please sign in to comment.