Make TryFromSliceError::__description unstable
Enforces use of Error::description instead.
This commit is contained in:
parent
e45e8abec2
commit
e41610c5ed
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user