about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-02-19 21:50:33 +0100
committerUrgau <urgau@numericable.fr>2024-03-29 22:02:07 +0100
commit16d11c539f9783a5e066d90a7d7b17f70ee2b086 (patch)
tree3fd4f4a237e4a6abaf8357a4220a5df40b7596e3 /compiler/rustc_data_structures/src
parentaf4a5a13a15fa0c60e06321077ef452f769b42fd (diff)
Add support for NonNull in ambiguous_wide_ptr_comparisions
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/tagged_ptr/copy.rs1
1 files changed, 1 insertions, 0 deletions
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
     }