Skip to content

Commit b30f62f

Browse files
authored
Rollup merge of rust-lang#62224 - euclio:remove-derives, r=GuillaumeGomez
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
2 parents 14df5e8 + e991abd commit b30f62f

File tree

7 files changed

+56
-68
lines changed

7 files changed

+56
-68
lines changed

src/librustdoc/clean/cfg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use syntax_pos::Span;
1616

1717
use crate::html::escape::Escape;
1818

19-
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, PartialEq, Eq, Hash)]
19+
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
2020
pub enum Cfg {
2121
/// Accepts all configurations.
2222
True,

0 commit comments

Comments
 (0)