From 06dce314f80a886bb10fec889d1b6e5c6ac070b7 Mon Sep 17 00:00:00 2001 From: LN Liberda Date: Wed, 20 Nov 2024 16:32:39 +0100 Subject: [PATCH] crown: fix build for rust 1.82 on musl (#34307) Signed-off-by: LN Liberda --- support/crown/src/unrooted_must_root.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/crown/src/unrooted_must_root.rs b/support/crown/src/unrooted_must_root.rs index fa843731b3a..4d6cf5a283b 100644 --- a/support/crown/src/unrooted_must_root.rs +++ b/support/crown/src/unrooted_must_root.rs @@ -146,7 +146,7 @@ fn is_unrooted_ty<'tcx>( }, ty::Ref(..) => false, // don't recurse down &ptrs ty::RawPtr(..) => false, // don't recurse down *ptrs - ty::FnDef(..) | ty::FnPtr(_) => false, + ty::FnDef(..) | ty::FnPtr(..) => false, ty::Alias( ty::AliasTyKind::Projection | ty::AliasTyKind::Inherent | ty::AliasTyKind::Weak, ty,