From e15c62d61fa02fac93992db9297aa4a8a56cef93 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 23 Oct 2018 23:09:44 +0200 Subject: revert making internal APIs const fn. --- src/libcore/array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/array.rs') diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 0bea541e163..3d24f8902bd 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -77,7 +77,7 @@ impl TryFromSliceError { issue = "0")] #[inline] #[doc(hidden)] - pub const fn __description(&self) -> &str { + pub fn __description(&self) -> &str { "could not convert slice to array" } } -- cgit 1.4.1-3-g733a5