about summary refs log tree commit diff
path: root/library/alloc/src/string.rs
diff options
context:
space:
mode:
authorMarijn Schouten <mhkbst@gmail.com>2025-08-23 19:36:19 +0000
committerMarijn Schouten <mhkbst@gmail.com>2025-08-26 06:36:53 +0000
commit845311a065a5638c516ed96c73b09862b176b329 (patch)
treea53242a98adddb23ece0ff83ade5bb4d6663d47a /library/alloc/src/string.rs
parent6d6a08cf590ec26296447b8d2cf2329bb64c303a (diff)
downloadrust-845311a065a5638c516ed96c73b09862b176b329.tar.gz
rust-845311a065a5638c516ed96c73b09862b176b329.zip
remove deprecated Error::description in impls
Diffstat (limited to 'library/alloc/src/string.rs')
-rw-r--r--library/alloc/src/string.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 9eacbf00e42..11fd4346ff5 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -2285,20 +2285,10 @@ impl fmt::Display for FromUtf16Error {
 }
 
 #[stable(feature = "rust1", since = "1.0.0")]
-impl Error for FromUtf8Error {
-    #[allow(deprecated)]
-    fn description(&self) -> &str {
-        "invalid utf-8"
-    }
-}
+impl Error for FromUtf8Error {}
 
 #[stable(feature = "rust1", since = "1.0.0")]
-impl Error for FromUtf16Error {
-    #[allow(deprecated)]
-    fn description(&self) -> &str {
-        "invalid utf-16"
-    }
-}
+impl Error for FromUtf16Error {}
 
 #[cfg(not(no_global_oom_handling))]
 #[stable(feature = "rust1", since = "1.0.0")]