Skip to main content

uni_internal_mut_check

Function uni_internal_mut_check 

Source
pub(crate) fn uni_internal_mut_check<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
) -> CheckResult
Expand description

Type-level UniInternalMut obligation check (no VM state required): Proved if the type writes through a raw pointer (plain or atomic) but does not implement Clone (which would copy the pointer and alias the pointee).