From 29efeb7a65411e2c90693266bafb39c8417f21bb Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Wed, 9 Sep 2020 15:46:33 +0000 Subject: [PATCH] partially revert #73771 --- src/librustdoc/clean/inline.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 50cb987cf0870..2d8e98413542a 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -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() {