Skip to content

Commit d73674e

Browse files
Make Qualifs getters public
1 parent cecfa43 commit d73674e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_mir/transform/check_consts/validation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct Qualifs<'mir, 'tcx> {
4040
}
4141

4242
impl Qualifs<'mir, 'tcx> {
43-
fn indirectly_mutable(
43+
pub fn indirectly_mutable(
4444
&mut self,
4545
ccx: &'mir ConstCx<'mir, 'tcx>,
4646
local: Local,
@@ -68,7 +68,7 @@ impl Qualifs<'mir, 'tcx> {
6868
/// Returns `true` if `local` is `NeedsDrop` at the given `Location`.
6969
///
7070
/// Only updates the cursor if absolutely necessary
71-
fn needs_drop(
71+
pub fn needs_drop(
7272
&mut self,
7373
ccx: &'mir ConstCx<'mir, 'tcx>,
7474
local: Local,
@@ -95,7 +95,7 @@ impl Qualifs<'mir, 'tcx> {
9595
/// Returns `true` if `local` is `HasMutInterior` at the given `Location`.
9696
///
9797
/// Only updates the cursor if absolutely necessary.
98-
fn has_mut_interior(
98+
pub fn has_mut_interior(
9999
&mut self,
100100
ccx: &'mir ConstCx<'mir, 'tcx>,
101101
local: Local,

0 commit comments

Comments
 (0)