Skip to content

Commit 3d7521d

Browse files
authored
Rollup merge of #73629 - flip1995:assoc_op_copy_clone, r=Manishearth
Make AssocOp Copy Found that this enum is not `Copy` while reviewing this Clippy PR: rust-lang/rust-clippy#5727 (comment) There shouldn't be a reason why this should not be `Copy`.
2 parents 7f6dfb4 + 2792014 commit 3d7521d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_ast/util/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_span::symbol::kw;
55
/// Associative operator with precedence.
66
///
77
/// This is the enum which specifies operator precedence and fixity to the parser.
8-
#[derive(PartialEq, Debug)]
8+
#[derive(Copy, Clone, PartialEq, Debug)]
99
pub enum AssocOp {
1010
/// `+`
1111
Add,

0 commit comments

Comments
 (0)