1
Fork 0

Update Cranelift

Fixes #1143
This commit is contained in:
bjorn3 2021-03-01 12:19:22 +01:00
parent 86c594426f
commit 27a5f4f472
3 changed files with 29 additions and 10 deletions

View file

@ -365,6 +365,22 @@ impl <T: PartialEq> PartialEq for Option<T> {
}
}
#[lang = "shl"]
pub trait Shl<RHS = Self> {
type Output;
#[must_use]
fn shl(self, rhs: RHS) -> Self::Output;
}
impl Shl for u128 {
type Output = u128;
fn shl(self, rhs: u128) -> u128 {
self << rhs
}
}
#[lang = "neg"]
pub trait Neg {
type Output;