We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f51f0b commit 1d320edCopy full SHA for 1d320ed
compiler/rustc_ast_pretty/src/pp.rs
@@ -177,7 +177,7 @@ pub struct BeginToken {
177
breaks: Breaks,
178
}
179
180
-#[derive(Clone, PartialEq)]
+#[derive(PartialEq)]
181
pub enum Token {
182
// In practice a string token contains either a `&'static str` or a
183
// `String`. `Cow` is overkill for this because we never modify the data,
@@ -229,7 +229,6 @@ pub struct Printer {
229
last_printed: Option<Token>,
230
231
232
-#[derive(Clone)]
233
struct BufEntry {
234
token: Token,
235
size: isize,
0 commit comments