mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
disable 64-bit CheckedMul on 32-bit
code generation problem reported as issue #8449
This commit is contained in:
@@ -827,7 +827,8 @@ fn checked_mul(&self, v: &i32) -> Option<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 @@ fn checked_mul(&self, v: &u32) -> Option<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> {
|
||||
|
||||
Reference in New Issue
Block a user