]> git.lizzy.rs Git - rust.git/commitdiff
Fix warning when compilin libcore on 16bit targets.
authorVadzim Dambrouski <vadzim.dambrouski@promwad.com>
Tue, 3 Apr 2018 12:33:18 +0000 (15:33 +0300)
committerVadzim Dambrouski <vadzim.dambrouski@promwad.com>
Tue, 3 Apr 2018 12:33:32 +0000 (15:33 +0300)
Fixes #49617

src/libcore/iter/range.rs

index 72b48b565719c90271a57d61cd7a806fe4d5c51c..5d57207763e47b671306ca3674f20da7cfd7eb14 100644 (file)
@@ -488,6 +488,7 @@ fn private_try_from(value: usize) -> Result<Self, ()> {
 }
 
 // unsigned to signed (only positive bound)
+#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))]
 macro_rules! try_from_upper_bounded {
     ($($target:ty),*) => {$(
         impl PrivateTryFromUsize for $target {