diff options
| author | Nikolai Vazquez <nvazquez1297@gmail.com> | 2017-09-29 11:20:21 -0400 |
|---|---|---|
| committer | Nikolai Vazquez <nvazquez1297@gmail.com> | 2017-09-29 11:20:21 -0400 |
| commit | e41610c5eda1dea31f7bf53b566ea850a6a9c8cc (patch) | |
| tree | e84f34a5a97bc578020d171a2558f284fdaadec3 /src/libcore/array.rs | |
| parent | e45e8abec2302530d774aab1ca800081b60aa89e (diff) | |
| download | rust-e41610c5eda1dea31f7bf53b566ea850a6a9c8cc.tar.gz rust-e41610c5eda1dea31f7bf53b566ea850a6a9c8cc.zip | |
Make TryFromSliceError::__description unstable
Enforces use of Error::description instead.
Diffstat (limited to 'src/libcore/array.rs')
| -rw-r--r-- | src/libcore/array.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 3d13a84e232..3d09424f8ba 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -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 { |
