From f58a3d6903e59e5e3c05b9bdb52502fa3faddc27 Mon Sep 17 00:00:00 2001 From: mu001999 Date: Thu, 4 Jul 2024 22:05:00 +0800 Subject: [PATCH] Improve dead code analysis --- core/src/default.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/default.rs b/core/src/default.rs index 5cacedcb241a5..4524b352ec817 100644 --- a/core/src/default.rs +++ b/core/src/default.rs @@ -103,7 +103,6 @@ use crate::ascii::Char as AsciiChar; /// ``` #[cfg_attr(not(test), rustc_diagnostic_item = "Default")] #[stable(feature = "rust1", since = "1.0.0")] -#[cfg_attr(not(bootstrap), rustc_trivial_field_reads)] pub trait Default: Sized { /// Returns the "default value" for a type. ///