Skip to content

Commit c2e121d

Browse files
Make new qualifs public
1 parent 3a5442a commit c2e121d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_mir/transform/check_consts/qualifs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// definitely cannot find anything bad anywhere.
55
///
66
/// The default implementations proceed structurally.
7-
trait Qualif {
7+
pub trait Qualif {
88
const IDX: usize;
99

1010
/// Return the qualification that is (conservatively) correct for any value
@@ -177,7 +177,7 @@ trait Qualif {
177177
/// and at *any point* during the run-time would produce the same result. In particular,
178178
/// promotion of temporaries must not change program behavior; if the promoted could be
179179
/// written to, that would be a problem.
180-
struct HasMutInterior;
180+
pub struct HasMutInterior;
181181

182182
impl Qualif for HasMutInterior {
183183
const IDX: usize = 0;
@@ -238,7 +238,7 @@ impl Qualif for HasMutInterior {
238238
/// This must be ruled out (a) because we cannot run `Drop` during compile-time
239239
/// as that might not be a `const fn`, and (b) because implicit promotion would
240240
/// remove side-effects that occur as part of dropping that value.
241-
struct NeedsDrop;
241+
pub struct NeedsDrop;
242242

243243
impl Qualif for NeedsDrop {
244244
const IDX: usize = 1;

0 commit comments

Comments
 (0)