diff options
Diffstat (limited to 'library/core/src/clone.rs')
| -rw-r--r-- | library/core/src/clone.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/clone.rs b/library/core/src/clone.rs index 19faf9cddac..b02333b0288 100644 --- a/library/core/src/clone.rs +++ b/library/core/src/clone.rs @@ -105,6 +105,7 @@ #[stable(feature = "rust1", since = "1.0.0")] #[lang = "clone"] #[rustc_diagnostic_item = "Clone"] +#[cfg_attr(not(bootstrap), rustc_trivial_field_reads)] pub trait Clone: Sized { /// Returns a copy of the value. /// |
