about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-01 14:50:51 +0000
committerbors <bors@rust-lang.org>2015-05-01 14:50:51 +0000
commit1320c293c16dd61093a9b7e8e3c441df6b59ea9e (patch)
tree474df956d29dcc2a2409e179c8b1d6bd5741c56a /src/libcore
parentaecf3d8b659c1f5bc457a5a146357ba484e27346 (diff)
parent616b94b66c20085e81ed43e450e78207177f54c6 (diff)
downloadrust-1320c293c16dd61093a9b7e8e3c441df6b59ea9e.tar.gz
rust-1320c293c16dd61093a9b7e8e3c441df6b59ea9e.zip
Auto merge of #25025 - Manishearth:rollup, r=Manishearth
- Successful merges: #24979, #24980, #24981, #24982, #24983, #24987, #24988, #24991, #24992, #24994, #24998, #25002, #25010, #25014, #25020, #25021
- Failed merges: 
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/num/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index b8638c5b09b..22f4e854655 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -113,12 +113,14 @@ macro_rules! int_impl {
      $mul_with_overflow:path) => {
         /// Returns the smallest value that can be represented by this integer type.
         #[stable(feature = "rust1", since = "1.0.0")]
+        #[inline]
         pub fn min_value() -> $T {
             (-1 as $T) << ($BITS - 1)
         }
 
         /// Returns the largest value that can be represented by this integer type.
         #[stable(feature = "rust1", since = "1.0.0")]
+        #[inline]
         pub fn max_value() -> $T {
             let min = $T::min_value(); !min
         }