Skip to content

Commit 2d1d443

Browse files
Rollup merge of #118858 - mu001999:dead_code/clean, r=cuviper
Remove dead codes in core Detected by #118257
2 parents 3340d49 + 6c0dbb8 commit 2d1d443

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎library/core/src/fmt/num.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait DisplayInt:
1515
fnzero() -> Self;
1616
fnfrom_u8(u:u8) -> Self;
1717
fnto_u8(&self) -> u8;
18-
fnto_u16(&self) -> u16;
18+
#[cfg(not(any(target_pointer_width = "64", target_arch = "wasm32")))]
1919
fnto_u32(&self) -> u32;
2020
fnto_u64(&self) -> u64;
2121
fnto_u128(&self) -> u128;
@@ -27,7 +27,7 @@ macro_rules! impl_int {
2727
fn zero() -> Self{0}
2828
fn from_u8(u:u8) -> Self{ u asSelf}
2929
fn to_u8(&self) -> u8{*selfasu8}
30-
fn to_u16(&self) -> u16{*selfasu16}
30+
#[cfg(not(any(target_pointer_width = "64", target_arch = "wasm32")))]
3131
fn to_u32(&self) -> u32{*selfasu32}
3232
fn to_u64(&self) -> u64{*selfasu64}
3333
fn to_u128(&self) -> u128{*selfasu128}
@@ -40,7 +40,7 @@ macro_rules! impl_uint {
4040
fn zero() -> Self{0}
4141
fn from_u8(u:u8) -> Self{ u asSelf}
4242
fn to_u8(&self) -> u8{*selfasu8}
43-
fn to_u16(&self) -> u16{*selfasu16}
43+
#[cfg(not(any(target_pointer_width = "64", target_arch = "wasm32")))]
4444
fn to_u32(&self) -> u32{*selfasu32}
4545
fn to_u64(&self) -> u64{*selfasu64}
4646
fn to_u128(&self) -> u128{*selfasu128}

0 commit comments

Comments
 (0)