File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/librustc_mir/transform/check_consts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
/// definitely cannot find anything bad anywhere.
5
5
///
6
6
/// The default implementations proceed structurally.
7
- trait Qualif {
7
+ pub trait Qualif {
8
8
const IDX : usize ;
9
9
10
10
/// Return the qualification that is (conservatively) correct for any value
@@ -177,7 +177,7 @@ trait Qualif {
177
177
/// and at *any point* during the run-time would produce the same result. In particular,
178
178
/// promotion of temporaries must not change program behavior; if the promoted could be
179
179
/// written to, that would be a problem.
180
- struct HasMutInterior ;
180
+ pub struct HasMutInterior ;
181
181
182
182
impl Qualif for HasMutInterior {
183
183
const IDX : usize = 0 ;
@@ -238,7 +238,7 @@ impl Qualif for HasMutInterior {
238
238
/// This must be ruled out (a) because we cannot run `Drop` during compile-time
239
239
/// as that might not be a `const fn`, and (b) because implicit promotion would
240
240
/// remove side-effects that occur as part of dropping that value.
241
- struct NeedsDrop ;
241
+ pub struct NeedsDrop ;
242
242
243
243
impl Qualif for NeedsDrop {
244
244
const IDX : usize = 1 ;
You can’t perform that action at this time.
0 commit comments