From e41610c5eda1dea31f7bf53b566ea850a6a9c8cc Mon Sep 17 00:00:00 2001 From: Nikolai Vazquez Date: Fri, 29 Sep 2017 11:20:21 -0400 Subject: [PATCH] Make TryFromSliceError::__description unstable Enforces use of Error::description instead. --- src/libcore/array.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 3d13a84e232..3d09424f8ba 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -71,6 +71,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { } impl TryFromSliceError { + #[unstable(feature = "array_error_internals", + reason = "available through Error trait and this method should not \ + be exposed publicly", + issue = "0")] #[inline] #[doc(hidden)] pub fn __description(&self) -> &str { -- 2.44.0