Make Qualifs getters public

This commit is contained in:
Dylan MacKenzie 2020-04-30 21:04:59 -07:00
parent cecfa43fb4
commit d73674e1e3

View File

@ -40,7 +40,7 @@ pub struct Qualifs<'mir, 'tcx> {
} }
impl Qualifs<'mir, 'tcx> { impl Qualifs<'mir, 'tcx> {
fn indirectly_mutable( pub fn indirectly_mutable(
&mut self, &mut self,
ccx: &'mir ConstCx<'mir, 'tcx>, ccx: &'mir ConstCx<'mir, 'tcx>,
local: Local, local: Local,
@ -68,7 +68,7 @@ impl Qualifs<'mir, 'tcx> {
/// Returns `true` if `local` is `NeedsDrop` at the given `Location`. /// Returns `true` if `local` is `NeedsDrop` at the given `Location`.
/// ///
/// Only updates the cursor if absolutely necessary /// Only updates the cursor if absolutely necessary
fn needs_drop( pub fn needs_drop(
&mut self, &mut self,
ccx: &'mir ConstCx<'mir, 'tcx>, ccx: &'mir ConstCx<'mir, 'tcx>,
local: Local, local: Local,
@ -95,7 +95,7 @@ impl Qualifs<'mir, 'tcx> {
/// Returns `true` if `local` is `HasMutInterior` at the given `Location`. /// Returns `true` if `local` is `HasMutInterior` at the given `Location`.
/// ///
/// Only updates the cursor if absolutely necessary. /// Only updates the cursor if absolutely necessary.
fn has_mut_interior( pub fn has_mut_interior(
&mut self, &mut self,
ccx: &'mir ConstCx<'mir, 'tcx>, ccx: &'mir ConstCx<'mir, 'tcx>,
local: Local, local: Local,