rustc_borrowck::path_utils

Function allow_two_phase_borrow

Source
pub(crate) fn allow_two_phase_borrow(kind: BorrowKind) -> bool
Expand description

Returns true if the borrow represented by kind is allowed to be split into separate Reservation and Activation phases.