Skip to content

Commit

Permalink
Rollup merge of #73629 - flip1995:assoc_op_copy_clone, r=Manishearth
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Manishearth authored Jun 26, 2020
2 parents 7f6dfb4 + 2792014 commit 3d7521d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_ast/util/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use rustc_span::symbol::kw;
/// Associative operator with precedence.
///
/// This is the enum which specifies operator precedence and fixity to the parser.
#[derive(PartialEq, Debug)]
#[derive(Copy, Clone, PartialEq, Debug)]
pub enum AssocOp {
/// `+`
Add,
Expand Down

0 comments on commit 3d7521d

Please sign in to comment.