Skip to content
/ rustc Public
forked from rust-lang/rust

Commit

Permalink
partially revert rust-lang#73771
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Sep 9, 2020
1 parent 1f6a155 commit 29efeb7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/librustdoc/clean/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,6 @@ pub fn build_impl(
return;
}
}

// Skip foreign unstable traits from lists of trait implementations and
// such. This helps prevent dependencies of the standard library, for
// example, from getting documented as "traits `u32` implements" which
// isn't really too helpful.
if let Some(trait_did) = associated_trait {
if let Some(stab) = cx.tcx.lookup_stability(trait_did.def_id) {
if stab.level.is_unstable() {
return;
}
}
}
}

let for_ = if let Some(did) = did.as_local() {
Expand Down

0 comments on commit 29efeb7

Please sign in to comment.