mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-31 15:35:29 +00:00
Fix panic when emitting diagnostic for closure mutable binding error Fixes #81700 The upvar borrow kind may be `ty::BorrowKind::UniqueImmBorrow`, which is still a mutable borrow for the purposes of this diagnostic code.