about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-02-03 12:33:27 -0500
committerAaron Hill <aa1ronham@gmail.com>2021-02-03 12:36:24 -0500
commitbc84e211075e4c53e6fd122353f3132939e45ff9 (patch)
treeac4c6ded68d81f3a01ac9fa84f4d6b4858614b12 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent6ad11e2e25919b75ebbc36d7910f2a1126a7e873 (diff)
downloadrust-bc84e211075e4c53e6fd122353f3132939e45ff9.tar.gz
rust-bc84e211075e4c53e6fd122353f3132939e45ff9.zip
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