diff options
| author | Urgau <urgau@numericable.fr> | 2023-03-30 09:24:44 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-05-10 19:36:02 +0200 |
| commit | 77773ad002f9bd9fc2124b964bebad94b5f5d286 (patch) | |
| tree | fc6d84bb96bd67536fcac02dc25be9e918ffb809 | |
| parent | 61ff2718f76ac1ea0669938a06babfd578fadd46 (diff) | |
| download | rust-77773ad002f9bd9fc2124b964bebad94b5f5d286.tar.gz rust-77773ad002f9bd9fc2124b964bebad94b5f5d286.zip | |
Allow the drop_copy lint in some library examples
| -rw-r--r-- | library/core/src/mem/mod.rs | 1 |
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); /// |
