about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2023-03-30 09:24:44 +0200
committerUrgau <urgau@numericable.fr>2023-05-10 19:36:02 +0200
commit77773ad002f9bd9fc2124b964bebad94b5f5d286 (patch)
treefc6d84bb96bd67536fcac02dc25be9e918ffb809
parent61ff2718f76ac1ea0669938a06babfd578fadd46 (diff)
downloadrust-77773ad002f9bd9fc2124b964bebad94b5f5d286.tar.gz
rust-77773ad002f9bd9fc2124b964bebad94b5f5d286.zip
Allow the drop_copy lint in some library examples
-rw-r--r--library/core/src/mem/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs
index 4913a6de918..289305253ec 100644
--- a/library/core/src/mem/mod.rs
+++ b/library/core/src/mem/mod.rs
@@ -968,6 +968,7 @@ pub const fn replace<T>(dest: &mut T, src: T) -> T {
 /// Integers and other types implementing [`Copy`] are unaffected by `drop`.
 ///
 /// ```
+/// # #![cfg_attr(not(bootstrap), allow(drop_copy))]
 /// #[derive(Copy, Clone)]
 /// struct Foo(u8);
 ///