From f5c42655b597d37c2e79ac48e60ef4b796d84e3e Mon Sep 17 00:00:00 2001 From: Vadzim Dambrouski Date: Tue, 3 Apr 2018 15:33:18 +0300 Subject: [PATCH] Fix warning when compilin libcore on 16bit targets. Fixes #49617 --- src/libcore/iter/range.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index 72b48b565719c..5d57207763e47 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 {