Skip to content

Commit 6896c91

Browse files
minicore: define Clone/PartialEq/Eq for no_core Ordering
1 parent 3081a1c commit 6896c91

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/auxiliary/minicore.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ impl<T: PointeeSized> LegacyReceiver for &mut T {}
7070
#[lang = "copy"]
7171
pub trait Copy: Sized {}
7272

73+
#[lang = "clone"]
74+
pub trait Clone {
75+
fn clone(&self) -> Self;
76+
}
77+
78+
#[lang = "partial_eq"]
79+
pub trait PartialEq {
80+
fn eq(&self, other: &Self) -> bool;
81+
}
82+
83+
#[lang = "eq"]
84+
pub trait Eq: PartialEq {}
85+
86+
7387
#[lang = "bikeshed_guaranteed_no_drop"]
7488
pub trait BikeshedGuaranteedNoDrop {}
7589

0 commit comments

Comments
 (0)