about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-31 00:24:39 +0000
committerbors <bors@rust-lang.org>2023-05-31 00:24:39 +0000
commite6e4f7ed1589e03bc2f6c5931c1a72e7947e8682 (patch)
tree8c51f6b9e5491a3124d810e7e0a1128e5e5852d6 /compiler/rustc_codegen_ssa
parent9610dfe5a9a731ced1ea4923ecbd0c57fe367898 (diff)
parent25f8f4cf953975dba37051ac1565e4999418c996 (diff)
downloadrust-e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682.tar.gz
rust-e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682.zip
Auto merge of #112070 - lcnr:disjoint-closure-capture-ub, r=oli-obk
change `BorrowKind::Unique` to be a mutating `PlaceContext`

fixes #112056

I believe that `BorrowKind::Unique` is a footgun in general, so I added a FIXME and opened https://github.com/rust-lang/rust/issues/112072. This is a bit too involved for this PR though.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/analyze.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/analyze.rs b/compiler/rustc_codegen_ssa/src/mir/analyze.rs
index 835074806e9..22c1f05974d 100644
--- a/compiler/rustc_codegen_ssa/src/mir/analyze.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/analyze.rs
@@ -234,7 +234,6 @@ impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
             | PlaceContext::NonMutatingUse(
                 NonMutatingUseContext::Inspect
                 | NonMutatingUseContext::SharedBorrow
-                | NonMutatingUseContext::UniqueBorrow
                 | NonMutatingUseContext::ShallowBorrow
                 | NonMutatingUseContext::AddressOf
                 | NonMutatingUseContext::Projection,