Type Definition rustc_mir_dataflow::impls::MaybeMutBorrowedLocals [−][src]
pub type MaybeMutBorrowedLocals<'mir, 'tcx> = MaybeBorrowedLocals<MutBorrow<'mir, 'tcx>>;
Implementations
pub fn mut_borrows_only(
tcx: TyCtxt<'tcx>,
body: &'mir Body<'tcx>,
param_env: ParamEnv<'tcx>
) -> Self
pub fn mut_borrows_only(
tcx: TyCtxt<'tcx>,
body: &'mir Body<'tcx>,
param_env: ParamEnv<'tcx>
) -> Self
A dataflow analysis that records whether a pointer or reference exists that may mutably alias the given local.
This includes &mut
and pointers derived from an &mut
, as well as shared borrows of
types with interior mutability.