Skip to content

Commit

Permalink
Revert "Revert doc cfg from Eq impls due to rustdoc bug"
Browse files Browse the repository at this point in the history
Fixed by rust-lang/rust#79300.

This reverts commit d9fb416.
  • Loading branch information
dtolnay committed Nov 23, 2020
1 parent 141cd89 commit c8719be
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 2 deletions.
3 changes: 1 addition & 2 deletions codegen/src/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ fn expand_impl(defs: &Definitions, node: &Node) -> TokenStream {

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

Expand Down
Loading

0 comments on commit c8719be

Please sign in to comment.