about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-04-08 20:44:57 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-04-13 11:17:31 +1000
commit769e2edb78a2729873288f53084bfc36f123e38e (patch)
tree43263e3283610b2f07f789f58aeba48fa87e1024 /compiler
parent52ca603da73ae9eaddf96f77953b33ad8c47cc8e (diff)
downloadrust-769e2edb78a2729873288f53084bfc36f123e38e.tar.gz
rust-769e2edb78a2729873288f53084bfc36f123e38e.zip
`SequenceRepetition` and `Delimited` don't need to be `Clone`.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_expand/src/mbe.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/mbe.rs b/compiler/rustc_expand/src/mbe.rs
index c1f1b4e505c..f78f8460dcf 100644
--- a/compiler/rustc_expand/src/mbe.rs
+++ b/compiler/rustc_expand/src/mbe.rs
@@ -19,7 +19,7 @@ use rustc_span::Span;
 
 /// Contains the sub-token-trees of a "delimited" token tree such as `(a b c)`. The delimiters
 /// might be `NoDelim`, but they are not represented explicitly.
-#[derive(Clone, PartialEq, Encodable, Decodable, Debug)]
+#[derive(PartialEq, Encodable, Decodable, Debug)]
 struct Delimited {
     delim: token::DelimToken,
     /// FIXME: #67062 has details about why this is sub-optimal.
@@ -38,7 +38,7 @@ impl Delimited {
     }
 }
 
-#[derive(Clone, PartialEq, Encodable, Decodable, Debug)]
+#[derive(PartialEq, Encodable, Decodable, Debug)]
 struct SequenceRepetition {
     /// The sequence of token trees
     tts: Vec<TokenTree>,