Change:
This is a regression from stable to beta, although this issue will be P-low. The problem is ignored documenting unstable traits for non-local types, fixes some regressions caused by it but the regression in nightly-rustc / compiler docs still opens. For example: Compare and . The doc in 1.46.0 has impl, while on nightly it doesn't have. A way to fix this issue is ignoring this check when the compiling-crates are being passed flag or the crate/module has feature: : Version 1.48.0-nightly ( 2020-09-14)
Hey! I would like to check this out if that is okay
Is this actually a regression?
Dropping regression label. nightly-rustc docs are, well, not really important on non-nightly channels, as they cannot be used by normal consumers.
if you're still interested in working on this we'd love to have the help! If you have trouble, feel free to ask for help in or :)
Thanks! Yes, I am still interested, I have been busy that past few weeks. I will give it a shot this weekend and will reach out if I can't figure it out!
Since zulip is lag in my region at night, I post a respond here. You could use to check for flag passed during compilation.
I think I'll hop onto this if that's OK. I've always wanted to contribute :)
Go for it!
It doesn't seem to be fixed by I'll check the cause

Discussion:
return; } <del> if let Some(stab) = tcx.lookup_stability(did) && stab.is_unstable() && stab.feature == sym::rustc_private { return; </del> <ins> if !tcx.features().rustc_private && !cx.render_options.force_unstable_if_unmarked { if let Some(stab) = tcx.lookup_stability(did) && stab.is_unstable() && stab.feature == sym::rustc_private { return; } </ins> } }

return; } <del> if let Some(stab) = tcx.lookup_stability(did) { if stab.is_unstable() && stab.feature == sym::rustc_private { </del> <ins> if !tcx.features().rustc_private && !cx.render_options.force_unstable_if_unmarked { if let Some(stab) = tcx.lookup_stability(did) && stab.is_unstable() && stab.feature == sym::rustc_private { </ins> return; } }

pub(crate) no_emit_shared: bool, /// If `true`, HTML source code pages won't be generated. pub(crate) html_no_source: bool, <ins> /// Whether `-Zforce-unstable-if-unmarked` unstable option is set pub(crate) force_unstable_if_unmarked: bool, </ins> } #[derive(Copy, Clone, Debug, PartialEq, Eq)]

let codegen_options = CodegenOptions::build(early_dcx, matches); let unstable_opts = UnstableOptions::build(early_dcx, matches); <ins> let force_unstable_if_unmarked = unstable_opts.force_unstable_if_unmarked; </ins> let dcx = new_dcx(error_format, None, diagnostic_width, &unstable_opts);

call_locations, no_emit_shared: false, html_no_source, <ins> force_unstable_if_unmarked, </ins> }; Some((options, render_options)) }

<ins> #![feature(staged_api)] #![unstable(feature = "rustc_private", issue = "none")] pub trait MaybeResult<T> {} impl<T> MaybeResult<T> for T {} </ins>

<ins> #![feature(rustc_private)] extern crate issue_76736_1; pub struct Bar; </ins>

<ins> // aux-build:issue-76736-1.rs // aux-build:issue-76736-2.rs #![crate_name = "foo"] extern crate issue_76736_1; extern crate issue_76736_2; // @has foo/struct.Foo.html // @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' pub struct Foo; // @has foo/struct.Bar.html // @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' pub use issue_76736_2::Bar; </ins>

<ins> // aux-build:issue-76736-1.rs // aux-build:issue-76736-2.rs #![crate_name = "foo"] #![feature(rustc_private)] extern crate issue_76736_1; extern crate issue_76736_2; // @has foo/struct.Foo.html // @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' pub struct Foo; // @has foo/struct.Bar.html // @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' pub use issue_76736_2::Bar; </ins>

<ins> // compile-flags: -Zforce-unstable-if-unmarked // aux-build:issue-76736-1.rs // aux-build:issue-76736-2.rs #![crate_name = "foo"] extern crate issue_76736_1; extern crate issue_76736_2; // @has foo/struct.Foo.html // @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' pub struct Foo; // @has foo/struct.Bar.html // @has - '//*[@class="impl"]//h3[@class="code-header"]' 'MaybeResult' pub use issue_76736_2::Bar; </ins>