Make TryFromSliceError::__description unstable
Enforces use of Error::description instead.
This commit is contained in:
parent
e45e8abec2
commit
e41610c5ed
@ -71,6 +71,10 @@ impl fmt::Display for TryFromSliceError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl TryFromSliceError {
|
impl TryFromSliceError {
|
||||||
|
#[unstable(feature = "array_error_internals",
|
||||||
|
reason = "available through Error trait and this method should not \
|
||||||
|
be exposed publicly",
|
||||||
|
issue = "0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn __description(&self) -> &str {
|
pub fn __description(&self) -> &str {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user