Skip to content

Commit

Permalink
Rollup merge of rust-lang#62224 - euclio:remove-derives, r=GuillaumeG…
Browse files Browse the repository at this point in the history
…omez

rustdoc: remove unused derives and variants

Though many structs in rustdoc derive `RustcEncodable` and `RustcDecodable`, the impls do not appear to be used by the crate or its dependents. Removing them revealed some enum variants that are never constructed, too.

r? @GuillaumeGomez
  • Loading branch information
Centril committed Jun 30, 2019
2 parents 70ea57b + e991abd commit 1683bb7
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 68 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use syntax_pos::Span;

use crate::html::escape::Escape;

#[derive(Clone, RustcEncodable, RustcDecodable, Debug, PartialEq, Eq, Hash)]
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub enum Cfg {
/// Accepts all configurations.
True,
Expand Down
Loading

0 comments on commit 1683bb7

Please sign in to comment.