about summary refs log tree commit diff
path: root/library/core/src/tuple.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-26 09:39:41 +0200
committerRalf Jung <post@ralfj.de>2024-01-24 07:56:23 +0100
commit0df7810734d396d1a3082eee674d542c81c269d2 (patch)
tree645b4b7b3214be6a2cd6322f6357e3bf815a389b /library/core/src/tuple.rs
parenta58ec8ff03b3269b20104eb7eae407be48ab95a7 (diff)
downloadrust-0df7810734d396d1a3082eee674d542c81c269d2.tar.gz
rust-0df7810734d396d1a3082eee674d542c81c269d2.zip
remove StructuralEq trait
Diffstat (limited to 'library/core/src/tuple.rs')
-rw-r--r--library/core/src/tuple.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/tuple.rs b/library/core/src/tuple.rs
index e1b77e34f21..47e27bdc735 100644
--- a/library/core/src/tuple.rs
+++ b/library/core/src/tuple.rs
@@ -2,7 +2,7 @@
 
 use crate::cmp::Ordering::{self, *};
 use crate::marker::ConstParamTy;
-use crate::marker::{StructuralEq, StructuralPartialEq};
+use crate::marker::StructuralPartialEq;
 
 // Recursive macro for implementing n-ary tuple functions and operations
 //
@@ -64,7 +64,8 @@ macro_rules! tuple_impls {
         maybe_tuple_doc! {
             $($T)+ @
             #[unstable(feature = "structural_match", issue = "31434")]
-            impl<$($T),+> StructuralEq for ($($T,)+)
+            #[cfg(bootstrap)]
+            impl<$($T),+> crate::marker::StructuralEq for ($($T,)+)
             {}
         }