summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src/impls
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-05-29 17:15:48 +0200
committerlcnr <rust@lcnr.de>2023-05-29 17:15:48 +0200
commitcfd062341125ae3abbf2e7a7e30cfb1e8ac0c6e3 (patch)
tree36843282387ee9dd7e8d11877933e04e366e7acb /compiler/rustc_mir_dataflow/src/impls
parent99ff5afeb8717c096a4f153896e0c3856a3934ad (diff)
downloadrust-cfd062341125ae3abbf2e7a7e30cfb1e8ac0c6e3.tar.gz
rust-cfd062341125ae3abbf2e7a7e30cfb1e8ac0c6e3.zip
unique borrows are mutating uses
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/impls')
-rw-r--r--compiler/rustc_mir_dataflow/src/impls/liveness.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir_dataflow/src/impls/liveness.rs b/compiler/rustc_mir_dataflow/src/impls/liveness.rs
index aeca0073304..6ae6bdc17d5 100644
--- a/compiler/rustc_mir_dataflow/src/impls/liveness.rs
+++ b/compiler/rustc_mir_dataflow/src/impls/liveness.rs
@@ -199,8 +199,7 @@ impl DefUse {
                 | NonMutatingUseContext::Move
                 | NonMutatingUseContext::PlaceMention
                 | NonMutatingUseContext::ShallowBorrow
-                | NonMutatingUseContext::SharedBorrow
-                | NonMutatingUseContext::UniqueBorrow,
+                | NonMutatingUseContext::SharedBorrow,
             ) => Some(DefUse::Use),
 
             PlaceContext::MutatingUse(MutatingUseContext::Projection)