Remove BorrowKind glob, make names longer

This commit is contained in:
Michael Goulet 2024-11-03 22:02:31 +00:00
parent be4b0261c2
commit 883f8705d4
68 changed files with 289 additions and 288 deletions

View file

@ -816,7 +816,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
) {
match captured_place.info.capture_kind {
ty::UpvarCapture::ByRef(
ty::BorrowKind::MutBorrow | ty::BorrowKind::UniqueImmBorrow,
ty::BorrowKind::Mutable | ty::BorrowKind::UniqueImmutable,
) => {
capture_reason = format!("mutable borrow of `{upvar}`");
}