Skip to content

Commit 5253294

Browse files
committed
Auto merge of #30702 - tshepang:derives-not-needed, r=steveklabnik
Also sneak in a missing trailing comma
2 parents 3a6c6c8 + ae96ce3 commit 5253294

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

src/libcore/ops.rs

+1-23
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//! #[derive(Debug)]
3939
//! struct Point {
4040
//! x: i32,
41-
//! y: i32
41+
//! y: i32,
4242
//! }
4343
//!
4444
//! impl Add for Point {
@@ -161,7 +161,6 @@ macro_rules! forward_ref_binop {
161161
/// ```
162162
/// use std::ops::Add;
163163
///
164-
/// #[derive(Copy, Clone)]
165164
/// struct Foo;
166165
///
167166
/// impl Add for Foo {
@@ -215,7 +214,6 @@ add_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
215214
/// ```
216215
/// use std::ops::Sub;
217216
///
218-
/// #[derive(Copy, Clone)]
219217
/// struct Foo;
220218
///
221219
/// impl Sub for Foo {
@@ -269,7 +267,6 @@ sub_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
269267
/// ```
270268
/// use std::ops::Mul;
271269
///
272-
/// #[derive(Copy, Clone)]
273270
/// struct Foo;
274271
///
275272
/// impl Mul for Foo {
@@ -323,7 +320,6 @@ mul_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
323320
/// ```
324321
/// use std::ops::Div;
325322
///
326-
/// #[derive(Copy, Clone)]
327323
/// struct Foo;
328324
///
329325
/// impl Div for Foo {
@@ -395,7 +391,6 @@ div_impl_float! { f32 f64 }
395391
/// ```
396392
/// use std::ops::Rem;
397393
///
398-
/// #[derive(Copy, Clone)]
399394
/// struct Foo;
400395
///
401396
/// impl Rem for Foo {
@@ -467,7 +462,6 @@ rem_impl_float! { f32 f64 }
467462
/// ```
468463
/// use std::ops::Neg;
469464
///
470-
/// #[derive(Copy, Clone)]
471465
/// struct Foo;
472466
///
473467
/// impl Neg for Foo {
@@ -535,7 +529,6 @@ neg_impl_numeric! { isize i8 i16 i32 i64 f32 f64 }
535529
/// ```
536530
/// use std::ops::Not;
537531
///
538-
/// #[derive(Copy, Clone)]
539532
/// struct Foo;
540533
///
541534
/// impl Not for Foo {
@@ -589,7 +582,6 @@ not_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
589582
/// ```
590583
/// use std::ops::BitAnd;
591584
///
592-
/// #[derive(Copy, Clone)]
593585
/// struct Foo;
594586
///
595587
/// impl BitAnd for Foo {
@@ -643,7 +635,6 @@ bitand_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
643635
/// ```
644636
/// use std::ops::BitOr;
645637
///
646-
/// #[derive(Copy, Clone)]
647638
/// struct Foo;
648639
///
649640
/// impl BitOr for Foo {
@@ -697,7 +688,6 @@ bitor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
697688
/// ```
698689
/// use std::ops::BitXor;
699690
///
700-
/// #[derive(Copy, Clone)]
701691
/// struct Foo;
702692
///
703693
/// impl BitXor for Foo {
@@ -751,7 +741,6 @@ bitxor_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
751741
/// ```
752742
/// use std::ops::Shl;
753743
///
754-
/// #[derive(Copy, Clone)]
755744
/// struct Foo;
756745
///
757746
/// impl Shl<Foo> for Foo {
@@ -823,7 +812,6 @@ shl_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
823812
/// ```
824813
/// use std::ops::Shr;
825814
///
826-
/// #[derive(Copy, Clone)]
827815
/// struct Foo;
828816
///
829817
/// impl Shr<Foo> for Foo {
@@ -898,7 +886,6 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
898886
///
899887
/// use std::ops::AddAssign;
900888
///
901-
/// #[derive(Copy, Clone)]
902889
/// struct Foo;
903890
///
904891
/// impl AddAssign for Foo {
@@ -945,7 +932,6 @@ add_assign_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
945932
///
946933
/// use std::ops::SubAssign;
947934
///
948-
/// #[derive(Copy, Clone)]
949935
/// struct Foo;
950936
///
951937
/// impl SubAssign for Foo {
@@ -992,7 +978,6 @@ sub_assign_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
992978
///
993979
/// use std::ops::MulAssign;
994980
///
995-
/// #[derive(Copy, Clone)]
996981
/// struct Foo;
997982
///
998983
/// impl MulAssign for Foo {
@@ -1039,7 +1024,6 @@ mul_assign_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
10391024
///
10401025
/// use std::ops::DivAssign;
10411026
///
1042-
/// #[derive(Copy, Clone)]
10431027
/// struct Foo;
10441028
///
10451029
/// impl DivAssign for Foo {
@@ -1086,7 +1070,6 @@ div_assign_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
10861070
///
10871071
/// use std::ops::RemAssign;
10881072
///
1089-
/// #[derive(Copy, Clone)]
10901073
/// struct Foo;
10911074
///
10921075
/// impl RemAssign for Foo {
@@ -1133,7 +1116,6 @@ rem_assign_impl! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
11331116
///
11341117
/// use std::ops::BitAndAssign;
11351118
///
1136-
/// #[derive(Copy, Clone)]
11371119
/// struct Foo;
11381120
///
11391121
/// impl BitAndAssign for Foo {
@@ -1180,7 +1162,6 @@ bitand_assign_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
11801162
///
11811163
/// use std::ops::BitOrAssign;
11821164
///
1183-
/// #[derive(Copy, Clone)]
11841165
/// struct Foo;
11851166
///
11861167
/// impl BitOrAssign for Foo {
@@ -1227,7 +1208,6 @@ bitor_assign_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
12271208
///
12281209
/// use std::ops::BitXorAssign;
12291210
///
1230-
/// #[derive(Copy, Clone)]
12311211
/// struct Foo;
12321212
///
12331213
/// impl BitXorAssign for Foo {
@@ -1274,7 +1254,6 @@ bitxor_assign_impl! { bool usize u8 u16 u32 u64 isize i8 i16 i32 i64 }
12741254
///
12751255
/// use std::ops::ShlAssign;
12761256
///
1277-
/// #[derive(Copy, Clone)]
12781257
/// struct Foo;
12791258
///
12801259
/// impl ShlAssign<Foo> for Foo {
@@ -1339,7 +1318,6 @@ shl_assign_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
13391318
///
13401319
/// use std::ops::ShrAssign;
13411320
///
1342-
/// #[derive(Copy, Clone)]
13431321
/// struct Foo;
13441322
///
13451323
/// impl ShrAssign<Foo> for Foo {

0 commit comments

Comments
 (0)