Skip to content

Commit e41610c

Browse files
committed
Make TryFromSliceError::__description unstable
Enforces use of Error::description instead.
1 parent e45e8ab commit e41610c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/array.rs

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ impl fmt::Display for TryFromSliceError {
7171
}
7272

7373
impl TryFromSliceError {
74+
#[unstable(feature = "array_error_internals",
75+
reason = "available through Error trait and this method should not \
76+
be exposed publicly",
77+
issue = "0")]
7478
#[inline]
7579
#[doc(hidden)]
7680
pub fn __description(&self) -> &str {

0 commit comments

Comments
 (0)