Skip to content

Commit b1b17fe

Browse files
Rollup merge of rust-lang#118302 - mu001999:dead_code/clean, r=cjgillot
Clean dead codes Clean dead codes detected by rust-lang#118257
2 parents a69bf0f + 6bdcc8b commit b1b17fe

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

std/src/error.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ pub use core::error::Error;
1212
#[unstable(feature = "error_generic_member_access", issue = "99301")]
1313
pub use core::error::{request_ref, request_value, Request};
1414

15-
mod private {
16-
// This is a hack to prevent `type_id` from being overridden by `Error`
17-
// implementations, since that can enable unsound downcasting.
18-
#[unstable(feature = "error_type_id", issue = "60784")]
19-
#[derive(Debug)]
20-
pub struct Internal;
21-
}
22-
2315
/// An error reporter that prints an error and its sources.
2416
///
2517
/// Report also exposes configuration options for formatting the error sources, either entirely on a

0 commit comments

Comments
 (0)