disable 64-bit CheckedMul on 32-bit
code generation problem reported as issue #8449
This commit is contained in:
parent
076b91f8ad
commit
7db605cd15
1 changed files with 4 additions and 2 deletions
|
|
@ -827,7 +827,8 @@ impl CheckedMul for i32 {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
// FIXME: #8449: should not be disabled on 32-bit
|
||||
#[cfg(not(stage0), target_word_size = "64")]
|
||||
impl CheckedMul for i64 {
|
||||
#[inline]
|
||||
fn checked_mul(&self, v: &i64) -> Option<i64> {
|
||||
|
|
@ -893,7 +894,8 @@ impl CheckedMul for u32 {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
// FIXME: #8449: should not be disabled on 32-bit
|
||||
#[cfg(not(stage0), target_word_size = "64")]
|
||||
impl CheckedMul for u64 {
|
||||
#[inline]
|
||||
fn checked_mul(&self, v: &u64) -> Option<u64> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue