Remove BorrowKind glob, make names longer
This commit is contained in:
parent
be4b0261c2
commit
883f8705d4
68 changed files with 289 additions and 288 deletions
|
@ -1185,11 +1185,11 @@ impl<'tcx> Cx<'tcx> {
|
|||
ty::UpvarCapture::ByValue => captured_place_expr,
|
||||
ty::UpvarCapture::ByRef(upvar_borrow) => {
|
||||
let borrow_kind = match upvar_borrow {
|
||||
ty::BorrowKind::ImmBorrow => BorrowKind::Shared,
|
||||
ty::BorrowKind::UniqueImmBorrow => {
|
||||
ty::BorrowKind::Immutable => BorrowKind::Shared,
|
||||
ty::BorrowKind::UniqueImmutable => {
|
||||
BorrowKind::Mut { kind: mir::MutBorrowKind::ClosureCapture }
|
||||
}
|
||||
ty::BorrowKind::MutBorrow => {
|
||||
ty::BorrowKind::Mutable => {
|
||||
BorrowKind::Mut { kind: mir::MutBorrowKind::Default }
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue