ci: Require miri step

This commit is contained in:
Lukas Wirth 2025-03-25 07:06:12 +01:00
parent d3aeddfb77
commit 7a1e9c4b0c
4 changed files with 10 additions and 10 deletions

View file

@ -223,7 +223,7 @@ impl HirPlace {
kind: MutBorrowKind::Default | MutBorrowKind::TwoPhasedBorrow,
}) = current_capture
{
if self.projections[len..].iter().any(|it| *it == ProjectionElem::Deref) {
if self.projections[len..].contains(&ProjectionElem::Deref) {
current_capture =
CaptureKind::ByRef(BorrowKind::Mut { kind: MutBorrowKind::ClosureCapture });
}