Rollup merge of #126302 - mu001999-contrib:ignore/default, r=michaelw… · model-checking/verify-rust-std@46074aa (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -396,7 +396,7 @@ fn show_arc() {
396 396
397 397 // Make sure deriving works with Arc
398 398 #[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Debug, Default)]
399 -struct Foo {
399 +struct _Foo {
400 400 inner: Arc<i32>,
401 401 }
402 402
Original file line number Diff line number Diff line change
@@ -103,6 +103,7 @@ use crate::ascii::Char as AsciiChar;
103 103 /// ```
104 104 #[cfg_attr(not(test), rustc_diagnostic_item = "Default")]
105 105 #[stable(feature = "rust1", since = "1.0.0")]
106 +#[cfg_attr(not(bootstrap), rustc_trivial_field_reads)]
106 107 pub trait Default: Sized {
107 108 /// Returns the "default value" for a type.
108 109 ///