Skip to content

Commit 769e2ed

Browse files
committed
SequenceRepetition and Delimited don't need to be Clone.
1 parent 52ca603 commit 769e2ed

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_expand/src

1 file changed

+2
-2
lines changed

compiler/rustc_expand/src/mbe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use rustc_span::Span;
1919

2020
/// Contains the sub-token-trees of a "delimited" token tree such as `(a b c)`. The delimiters
2121
/// might be `NoDelim`, but they are not represented explicitly.
22-
#[derive(Clone, PartialEq, Encodable, Decodable, Debug)]
22+
#[derive(PartialEq, Encodable, Decodable, Debug)]
2323
struct Delimited {
2424
delim: token::DelimToken,
2525
/// FIXME: #67062 has details about why this is sub-optimal.
@@ -38,7 +38,7 @@ impl Delimited {
3838
}
3939
}
4040

41-
#[derive(Clone, PartialEq, Encodable, Decodable, Debug)]
41+
#[derive(PartialEq, Encodable, Decodable, Debug)]
4242
struct SequenceRepetition {
4343
/// The sequence of token trees
4444
tts: Vec<TokenTree>,

0 commit comments

Comments
 (0)