diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-29 01:34:06 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-29 01:34:06 +0000 |
| commit | 599ffab6cd240486fe63d22b01504b24938fc384 (patch) | |
| tree | ad1762c98c2109c18e3eb46d299f795d8d4fee29 /compiler/rustc_lint/src | |
| parent | 9f57edf2e261ade3c926d69459162057f15164d6 (diff) | |
| download | rust-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.rs | 2 |
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); |
