diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-04-30 21:04:59 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-06-13 11:04:29 -0700 |
| commit | d73674e1e3ea255cc82ec00023a4968d43c93a46 (patch) | |
| tree | 20de70019e42a57564d2370f1d0e936789cff21e | |
| parent | cecfa43fb4f12ff4fda3af372dd8502a8f275ee6 (diff) | |
| download | rust-d73674e1e3ea255cc82ec00023a4968d43c93a46.tar.gz rust-d73674e1e3ea255cc82ec00023a4968d43c93a46.zip | |
Make `Qualifs` getters public
| -rw-r--r-- | src/librustc_mir/transform/check_consts/validation.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/transform/check_consts/validation.rs b/src/librustc_mir/transform/check_consts/validation.rs index d351b3ced05..cc9b593b7ab 100644 --- a/src/librustc_mir/transform/check_consts/validation.rs +++ b/src/librustc_mir/transform/check_consts/validation.rs @@ -40,7 +40,7 @@ pub struct Qualifs<'mir, 'tcx> { } impl Qualifs<'mir, 'tcx> { - fn indirectly_mutable( + pub fn indirectly_mutable( &mut self, ccx: &'mir ConstCx<'mir, 'tcx>, local: Local, @@ -68,7 +68,7 @@ impl Qualifs<'mir, 'tcx> { /// Returns `true` if `local` is `NeedsDrop` at the given `Location`. /// /// Only updates the cursor if absolutely necessary - fn needs_drop( + pub fn needs_drop( &mut self, ccx: &'mir ConstCx<'mir, 'tcx>, local: Local, @@ -95,7 +95,7 @@ impl Qualifs<'mir, 'tcx> { /// Returns `true` if `local` is `HasMutInterior` at the given `Location`. /// /// Only updates the cursor if absolutely necessary. - fn has_mut_interior( + pub fn has_mut_interior( &mut self, ccx: &'mir ConstCx<'mir, 'tcx>, local: Local, |
