about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-04-04 11:07:27 +0200
committerGitHub <noreply@github.com>2018-04-04 11:07:27 +0200
commitce5db0f887d489f62c90002d9d154e5e3a4a4cbd (patch)
treee3c9e81dd1396879c779a13f2705f438e6d4f082
parent19c07d382a666271a87e4df41db1bc3f2298e27d (diff)
parentf5c42655b597d37c2e79ac48e60ef4b796d84e3e (diff)
downloadrust-ce5db0f887d489f62c90002d9d154e5e3a4a4cbd.tar.gz
rust-ce5db0f887d489f62c90002d9d154e5e3a4a4cbd.zip
Rollup merge of #49618 - pftbest:fix_warning, r=SimonSapin
Fix build error when compiling libcore for 16bit targets

Fixes #49617

cc @SimonSapin
-rw-r--r--src/libcore/iter/range.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs
index 72b48b56571..5d57207763e 100644
--- a/src/libcore/iter/range.rs
+++ b/src/libcore/iter/range.rs
@@ -488,6 +488,7 @@ macro_rules! try_from_unbounded {
 }
 
 // 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 {