Skip to content

Commit c87bebd

Browse files
committed
Add Copy to some AST enums.
1 parent 80d8f29 commit c87bebd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,15 +857,15 @@ impl BindingMode {
857857
}
858858
}
859859

860-
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
860+
#[derive(Clone, Copy, Encodable, Decodable, Debug, Walkable)]
861861
pub enum RangeEnd {
862862
/// `..=` or `...`
863863
Included(RangeSyntax),
864864
/// `..`
865865
Excluded,
866866
}
867867

868-
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
868+
#[derive(Clone, Copy, Encodable, Decodable, Debug, Walkable)]
869869
pub enum RangeSyntax {
870870
/// `...`
871871
DotDotDot,
@@ -1915,7 +1915,7 @@ pub enum ForLoopKind {
19151915
}
19161916

19171917
/// Used to differentiate between `async {}` blocks and `gen {}` blocks.
1918-
#[derive(Clone, Encodable, Decodable, Debug, PartialEq, Eq, Walkable)]
1918+
#[derive(Clone, Copy, Encodable, Decodable, Debug, PartialEq, Eq, Walkable)]
19191919
pub enum GenBlockKind {
19201920
Async,
19211921
Gen,

0 commit comments

Comments
 (0)