Struct rustc_mir::transform::check_consts::validation::Qualifs [−][src]
pub struct Qualifs<'mir, 'tcx> {
has_mut_interior: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, HasMutInterior>>>,
needs_drop: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, NeedsDrop>>>,
indirectly_mutable: Option<ResultsCursor<'mir, 'tcx, MaybeMutBorrowedLocals<'mir, 'tcx>>>,
}Fields
has_mut_interior: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, HasMutInterior>>>needs_drop: Option<ResultsCursor<'mir, 'tcx, FlowSensitiveAnalysis<'mir, 'mir, 'tcx, NeedsDrop>>>indirectly_mutable: Option<ResultsCursor<'mir, 'tcx, MaybeMutBorrowedLocals<'mir, 'tcx>>>Implementations
pub fn indirectly_mutable(
&mut self,
ccx: &'mir ConstCx<'mir, 'tcx>,
local: Local,
location: Location
) -> boolReturns true if local is NeedsDrop at the given Location.
Only updates the cursor if absolutely necessary
Returns true if local is HasMutInterior at the given Location.
Only updates the cursor if absolutely necessary.
fn in_return_place(
&mut self,
ccx: &'mir ConstCx<'mir, 'tcx>,
error_occured: Option<ErrorReported>
) -> ConstQualifsTrait Implementations
Auto Trait Implementations
impl<'mir, 'tcx> !RefUnwindSafe for Qualifs<'mir, 'tcx>impl<'mir, 'tcx> !UnwindSafe for Qualifs<'mir, 'tcx>Blanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 432 bytes