diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-23 10:18:05 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-23 10:43:13 +0000 |
| commit | 6059d59548f94a43b346b0b95c7a74e2dd9b1aa0 (patch) | |
| tree | 879dab78850ef22523d6ed3ad6c9b64e3eb78615 | |
| parent | 7e5c819796a40f6f98a406bc99837b0a77dc3e2a (diff) | |
| download | rust-6059d59548f94a43b346b0b95c7a74e2dd9b1aa0.tar.gz rust-6059d59548f94a43b346b0b95c7a74e2dd9b1aa0.zip | |
Properly analyze captures from unsafe binders
| -rw-r--r-- | clippy_utils/src/sugg.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clippy_utils/src/sugg.rs b/clippy_utils/src/sugg.rs index 93dec113d31..f4dfc8f4b5a 100644 --- a/clippy_utils/src/sugg.rs +++ b/clippy_utils/src/sugg.rs @@ -941,6 +941,8 @@ impl<'tcx> Delegate<'tcx> for DerefDelegate<'_, 'tcx> { ProjectionKind::Subslice | // Doesn't have surface syntax. Only occurs in patterns. ProjectionKind::OpaqueCast => (), + // Only occurs in closure captures. + ProjectionKind::UnwrapUnsafeBinder => (), ProjectionKind::Deref => { // Explicit derefs are typically handled later on, but // some items do not need explicit deref, such as array accesses, |
