about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-01-05 07:30:38 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-01-11 03:19:50 +0100
commitd247ac4c0d64b278d80296a0dab801238fa3c66b (patch)
treef2fedc2187680bac495d463e25cb858193b57ab6
parentfff5ef68b0d5c314569a71c7fae136196b14a6bc (diff)
downloadrust-d247ac4c0d64b278d80296a0dab801238fa3c66b.tar.gz
rust-d247ac4c0d64b278d80296a0dab801238fa3c66b.zip
Remove unused derives
-rw-r--r--src/librustc/lint/builtin.rs2
-rw-r--r--src/librustc/lint/context.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs
index f5845dcae12..5dea0dbc896 100644
--- a/src/librustc/lint/builtin.rs
+++ b/src/librustc/lint/builtin.rs
@@ -516,7 +516,7 @@ declare_lint_pass! {
 
 // this could be a closure, but then implementing derive traits
 // becomes hacky (and it gets allocated)
-#[derive(PartialEq, RustcEncodable, RustcDecodable, Debug)]
+#[derive(PartialEq)]
 pub enum BuiltinLintDiagnostics {
     Normal,
     BareTraitObject(Span, /* is_global */ bool),
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs
index bd561b41c57..492d8f1f8a5 100644
--- a/src/librustc/lint/context.rs
+++ b/src/librustc/lint/context.rs
@@ -66,7 +66,7 @@ pub struct LintStore {
 
 /// Lints that are buffered up early on in the `Session` before the
 /// `LintLevels` is calculated
-#[derive(PartialEq, Debug)]
+#[derive(PartialEq)]
 pub struct BufferedEarlyLint {
     pub lint_id: LintId,
     pub ast_id: ast::NodeId,