Skip to content

Commit

Permalink
Revert doc cfg from Eq impls due to rustdoc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 21, 2020
1 parent 99be307 commit d9fb416
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 188 deletions.
3 changes: 2 additions & 1 deletion codegen/src/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ fn expand_impl(defs: &Definitions, node: &Node) -> TokenStream {

let eq = quote! {
#cfg_features
#[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
// https://github.com/rust-lang/rust/issues/79279
// #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
impl Eq for #ident {}
};

Expand Down
Loading

0 comments on commit d9fb416

Please sign in to comment.