1
Fork 0

Update Cranelift

Fixes bootstrapping of rustc using cg_clif

Fixes #1097
This commit is contained in:
bjorn3 2020-11-01 09:50:33 +01:00
parent 6b1902a0fa
commit f4e8af268b
3 changed files with 42 additions and 10 deletions

View file

@ -48,6 +48,7 @@ unsafe impl Copy for u8 {}
unsafe impl Copy for u16 {}
unsafe impl Copy for u32 {}
unsafe impl Copy for u64 {}
unsafe impl Copy for u128 {}
unsafe impl Copy for usize {}
unsafe impl Copy for i8 {}
unsafe impl Copy for i16 {}
@ -283,6 +284,15 @@ impl PartialEq for u64 {
}
}
impl PartialEq for u128 {
fn eq(&self, other: &u128) -> bool {
(*self) == (*other)
}
fn ne(&self, other: &u128) -> bool {
(*self) != (*other)
}
}
impl PartialEq for usize {
fn eq(&self, other: &usize) -> bool {
(*self) == (*other)