about summary refs log tree commit diff
path: root/library/std/src/error.rs
diff options
context:
space:
mode:
authorr0cky <mu001999@outlook.com>2023-11-25 18:18:55 +0800
committerr0cky <mu001999@outlook.com>2023-11-26 09:25:07 +0800
commit91aee2de15e52f65c070e012e7993618aed30aba (patch)
tree18157885efb327907e29c8bc8e79798aa561928c /library/std/src/error.rs
parentf5dc2653fdd8b5d177b2ccbd84057954340a89fc (diff)
downloadrust-91aee2de15e52f65c070e012e7993618aed30aba.tar.gz
rust-91aee2de15e52f65c070e012e7993618aed30aba.zip
Clean dead codes
Diffstat (limited to 'library/std/src/error.rs')
-rw-r--r--library/std/src/error.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/library/std/src/error.rs b/library/std/src/error.rs
index 375ff2d2450..b240e4e2c45 100644
--- a/library/std/src/error.rs
+++ b/library/std/src/error.rs
@@ -12,14 +12,6 @@ pub use core::error::Error;
 #[unstable(feature = "error_generic_member_access", issue = "99301")]
 pub use core::error::{request_ref, request_value, Request};
 
-mod private {
-    // This is a hack to prevent `type_id` from being overridden by `Error`
-    // implementations, since that can enable unsound downcasting.
-    #[unstable(feature = "error_type_id", issue = "60784")]
-    #[derive(Debug)]
-    pub struct Internal;
-}
-
 /// An error reporter that prints an error and its sources.
 ///
 /// Report also exposes configuration options for formatting the error sources, either entirely on a