diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-08 20:44:57 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-13 11:17:31 +1000 |
| commit | 769e2edb78a2729873288f53084bfc36f123e38e (patch) | |
| tree | 43263e3283610b2f07f789f58aeba48fa87e1024 /compiler | |
| parent | 52ca603da73ae9eaddf96f77953b33ad8c47cc8e (diff) | |
| download | rust-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.rs | 4 |
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>, |
