Add Copy to some AST enums.

This commit is contained in:
Jason Newcomb 2025-11-25 23:07:27 -05:00
parent 80d8f292d8
commit c87bebd553

View file

@ -857,7 +857,7 @@ impl BindingMode {
}
}
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
#[derive(Clone, Copy, Encodable, Decodable, Debug, Walkable)]
pub enum RangeEnd {
/// `..=` or `...`
Included(RangeSyntax),
@ -865,7 +865,7 @@ pub enum RangeEnd {
Excluded,
}
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
#[derive(Clone, Copy, Encodable, Decodable, Debug, Walkable)]
pub enum RangeSyntax {
/// `...`
DotDotDot,
@ -1915,7 +1915,7 @@ pub enum ForLoopKind {
}
/// Used to differentiate between `async {}` blocks and `gen {}` blocks.
#[derive(Clone, Encodable, Decodable, Debug, PartialEq, Eq, Walkable)]
#[derive(Clone, Copy, Encodable, Decodable, Debug, PartialEq, Eq, Walkable)]
pub enum GenBlockKind {
Async,
Gen,