diff options
| author | bors <bors@rust-lang.org> | 2023-05-31 00:24:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-31 00:24:39 +0000 |
| commit | e6e4f7ed1589e03bc2f6c5931c1a72e7947e8682 (patch) | |
| tree | 8c51f6b9e5491a3124d810e7e0a1128e5e5852d6 /compiler/rustc_mir_transform/src/const_prop.rs | |
| parent | 9610dfe5a9a731ced1ea4923ecbd0c57fe367898 (diff) | |
| parent | 25f8f4cf953975dba37051ac1565e4999418c996 (diff) | |
| download | rust-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_mir_transform/src/const_prop.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/const_prop.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/const_prop.rs b/compiler/rustc_mir_transform/src/const_prop.rs index a5d18fff89b..1ba1951afde 100644 --- a/compiler/rustc_mir_transform/src/const_prop.rs +++ b/compiler/rustc_mir_transform/src/const_prop.rs @@ -772,7 +772,6 @@ impl<'tcx> Visitor<'tcx> for CanConstProp { // mutation. | NonMutatingUse(NonMutatingUseContext::SharedBorrow) | NonMutatingUse(NonMutatingUseContext::ShallowBorrow) - | NonMutatingUse(NonMutatingUseContext::UniqueBorrow) | NonMutatingUse(NonMutatingUseContext::AddressOf) | MutatingUse(MutatingUseContext::Borrow) | MutatingUse(MutatingUseContext::AddressOf) => { |
