about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-03 20:53:08 +0000
committerbors <bors@rust-lang.org>2021-02-03 20:53:08 +0000
commite708cbd91c9cae4426d69270248362b423324556 (patch)
tree292389d778b37e739023f2df6a70edb2a7b9c83d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent120b2a704a60d4341286bd82f6e638c65ca169b6 (diff)
parentbc84e211075e4c53e6fd122353f3132939e45ff9 (diff)
downloadrust-e708cbd91c9cae4426d69270248362b423324556.tar.gz
rust-e708cbd91c9cae4426d69270248362b423324556.zip
Auto merge of #81717 - Aaron1011:fix/closure-diag, r=estebank
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions