Make TryFromSliceError::__description unstable

Enforces use of Error::description instead.
This commit is contained in:
Nikolai Vazquez 2017-09-29 11:20:21 -04:00
parent e45e8abec2
commit e41610c5ed

View File

@ -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 {