From 16d11c539f9783a5e066d90a7d7b17f70ee2b086 Mon Sep 17 00:00:00 2001 From: Urgau Date: Mon, 19 Feb 2024 21:50:33 +0100 Subject: Add support for NonNull in ambiguous_wide_ptr_comparisions --- compiler/rustc_data_structures/src/tagged_ptr/copy.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_data_structures/src') diff --git a/compiler/rustc_data_structures/src/tagged_ptr/copy.rs b/compiler/rustc_data_structures/src/tagged_ptr/copy.rs index ff4208def31..8b9e834b60b 100644 --- a/compiler/rustc_data_structures/src/tagged_ptr/copy.rs +++ b/compiler/rustc_data_structures/src/tagged_ptr/copy.rs @@ -243,6 +243,7 @@ where T: Tag, { #[inline] + #[allow(ambiguous_wide_pointer_comparisons)] fn eq(&self, other: &Self) -> bool { self.packed == other.packed } -- cgit 1.4.1-3-g733a5