about summary refs log tree commit diff
path: root/src/libcore/slice
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-10-23 18:06:11 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2018-11-10 01:10:07 +0100
commitd1d2aa22c0d15465af1daccdb3821450c98d0ed0 (patch)
tree18c62f427f6e1efd2edd878b565fcfd1e2897c5c /src/libcore/slice
parent53fe6294170e5f872877e87c1b05795b2b4d11d1 (diff)
downloadrust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.tar.gz
rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.zip
reduce list to functions callable in const ctx.
Diffstat (limited to 'src/libcore/slice')
-rw-r--r--src/libcore/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs
index f8dee537062..dae425da789 100644
--- a/src/libcore/slice/mod.rs
+++ b/src/libcore/slice/mod.rs
@@ -4021,7 +4021,7 @@ impl<'a, T> ChunksExact<'a, T> {
     /// returned by the iterator. The returned slice has at most `chunk_size-1`
     /// elements.
     #[stable(feature = "chunks_exact", since = "1.31.0")]
-    pub const fn remainder(&self) -> &'a [T] {
+    pub fn remainder(&self) -> &'a [T] {
         self.rem
     }
 }
@@ -4517,7 +4517,7 @@ impl<'a, T> RChunksExact<'a, T> {
     /// returned by the iterator. The returned slice has at most `chunk_size-1`
     /// elements.
     #[stable(feature = "rchunks", since = "1.31.0")]
-    pub const fn remainder(&self) -> &'a [T] {
+    pub fn remainder(&self) -> &'a [T] {
         self.rem
     }
 }