Skip to content

Commit 438ce38

Browse files
authored
Unrolled build for #149341
Rollup merge of #149341 - Jarcho:ast_copy, r=chenyukang Add `Copy` to some AST enums. It's a minor annoyance they aren't `Copy` and there doesn't seem to be any reason for them not to be.
2 parents c797096 + c87bebd commit 438ce38

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)