Skip to content

Commit

Permalink
Make TryFromSliceError::__description unstable
Browse files Browse the repository at this point in the history
Enforces use of Error::description instead.
  • Loading branch information
nvzqz committed Sep 29, 2017
1 parent e45e8ab commit e41610c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/array.rs
Expand Up @@ -71,6 +71,10 @@ impl fmt::Display for TryFromSliceError {
}

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 {
Expand Down

0 comments on commit e41610c

Please sign in to comment.