about summary refs log tree commit diff
path: root/src/libcore/ops
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-10-23 02:04:14 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2018-11-10 01:07:32 +0100
commit5b89877dda5b8267f1ec35dfc9bb6ddc4472f006 (patch)
tree0f5237eeb066e1d8d27ed5fbeb7fca0ccb966957 /src/libcore/ops
parentb4c046b342f01bf2e750e6ac824b94be4b72c8ec (diff)
downloadrust-5b89877dda5b8267f1ec35dfc9bb6ddc4472f006.tar.gz
rust-5b89877dda5b8267f1ec35dfc9bb6ddc4472f006.zip
constify parts of libcore.
Diffstat (limited to 'src/libcore/ops')
-rw-r--r--src/libcore/ops/range.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs
index 6cfb1005325..908490e1c83 100644
--- a/src/libcore/ops/range.rs
+++ b/src/libcore/ops/range.rs
@@ -416,7 +416,7 @@ impl<Idx> RangeInclusive<Idx> {
     /// ```
     #[stable(feature = "inclusive_range_methods", since = "1.27.0")]
     #[inline]
-    pub fn start(&self) -> &Idx {
+    pub const fn start(&self) -> &Idx {
         &self.start
     }
 
@@ -440,7 +440,7 @@ impl<Idx> RangeInclusive<Idx> {
     /// ```
     #[stable(feature = "inclusive_range_methods", since = "1.27.0")]
     #[inline]
-    pub fn end(&self) -> &Idx {
+    pub const fn end(&self) -> &Idx {
         &self.end
     }