about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-29 01:34:06 +0000
committerMichael Goulet <michael@errs.io>2024-10-29 01:34:06 +0000
commit599ffab6cd240486fe63d22b01504b24938fc384 (patch)
treead1762c98c2109c18e3eb46d299f795d8d4fee29 /compiler/rustc_lint/src
parent9f57edf2e261ade3c926d69459162057f15164d6 (diff)
downloadrust-599ffab6cd240486fe63d22b01504b24938fc384.tar.gz
rust-599ffab6cd240486fe63d22b01504b24938fc384.zip
Remove region from adjustments
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/unused.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/unused.rs b/compiler/rustc_lint/src/unused.rs
index bbb290c9459..b50a95e7d2b 100644
--- a/compiler/rustc_lint/src/unused.rs
+++ b/compiler/rustc_lint/src/unused.rs
@@ -1610,7 +1610,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedAllocation {
         }
 
         for adj in cx.typeck_results().expr_adjustments(e) {
-            if let adjustment::Adjust::Borrow(adjustment::AutoBorrow::Ref(_, m)) = adj.kind {
+            if let adjustment::Adjust::Borrow(adjustment::AutoBorrow::Ref(m)) = adj.kind {
                 match m {
                     adjustment::AutoBorrowMutability::Not => {
                         cx.emit_span_lint(UNUSED_ALLOCATION, e.span, UnusedAllocationDiag);