Skip to content

Missing docs for non-first impl #74531

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
Member

e.g., https://doc.rust-lang.org/nightly/std/panic/struct.Location.html is missing the file/line/column method docs which are present in beta https://doc.rust-lang.org/beta/std/panic/struct.Location.html#impl-1

cc @rust-lang/rustdoc

Activity

added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
C-bugCategory: This is a bug.
on Jul 19, 2020
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Jul 19, 2020
JohnTitor

JohnTitor commented on Jul 19, 2020

@JohnTitor
Member

Removing I-prioritize as this is T-rustdoc issue.

removed
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Jul 19, 2020
Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member
Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

A quick test indicates that copying the source of std::panic::Location out into a no_std crate doesn't fix the problem

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

Oh wait I don't have the latest nightly

JohnTitor

JohnTitor commented on Jul 19, 2020

@JohnTitor
Member

@Manishearth As mentioned in #72340 (comment), I'm not sure this should be prioritized under t-compiler's wg-prioritization. If this label is useful for the rustdoc team as well, we could tweak triagebot not to notify on Zulip.

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

@JohnTitor Yeah it seems like it would be useful for us

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

Hmm so I am unable to reproduce this bug on a self contained no-core file that contains the exact code of Location aside for changes in the body

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

Regression range 7e11379..5c9e5df

5c9e5df Auto merge of #74408 - Manishearth:rollup-9gxn4od, r=Manishearth
6ee1b62 Auto merge of #72481 - marmeladema:duration-consts-2, r=oli-obk
125c58c Auto merge of #74202 - oli-obk:mir_const, r=RalfJung
4cd0ee9 Auto merge of #74388 - Manishearth:rollup-i7iueu8, r=Manishearth
e2e29de Auto merge of #74375 - Manishearth:rollup-10vbpdh, r=Manishearth

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

Works in 6ee1b62

Regressing PR is #74408

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

Rustdoc PRs in that rollup

fc09817 Rollup merge of #74370 - Manishearth:re-spotlight, r=GuillaumeGomez
61fccf0 Rollup merge of #74359 - lzutao:rustdoc-tostring, r=GuillaumeGomez
196243e Rollup merge of #74325 - GuillaumeGomez:focus-source-file-sidebar, r=kinnison
61a3f67 Rollup merge of #74148 - GuillaumeGomez:doc-alias-check, r=Manishearth
b700835 Rollup merge of #73807 - euclio:rustdoc-highlighting, r=ollie27,GuillaumeGomez
a8bb245 Rollup merge of #73771 - alexcrichton:ignore-unstable, r=estebank,GuillaumeGomez
c23f045 Rollup merge of #73566 - jyn514:name-resolve-first, r=eddyb

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

Confirmed, 9ffb7801363cff45dcb56fa2146a48aa0ae433db (try build from #73771) is the culprit

Manishearth

Manishearth commented on Jul 19, 2020

@Manishearth
Member

What's happening is that that code erroneously checks the stability of the impl, which apparently is "unstable if it contains unstable items". The "foreign item" check applies to libstd reexporting libcore. It shouldn't.

The minimal reproduction is two crates, one using stability attrs such that an impl has at least one unstable item, and the second crate reexporting the type.

Mark-Simulacrum

Mark-Simulacrum commented on Jul 19, 2020

@Mark-Simulacrum
MemberAuthor

I'm going to take a stab at fixing this.

added a commit that references this issue on Jul 20, 2020

Rollup merge of rust-lang#74534 - Mark-Simulacrum:rustdoc-stability, …

e8fc993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @Manishearth@Mark-Simulacrum@JohnTitor@rustbot

    Issue actions

      Missing docs for non-first impl · Issue #74531 · rust-lang/rust