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: https://github.com/rust-lang/rust-clippy/pull/5727#discussion_r443761621 There shouldn't be a reason why this should not be `Copy`.
This commit is contained in:
commit
3d7521d31d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue