-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustdoc doesn't show src button for many functions in the rustc docs #70025
Comments
@rustbot modify labels:+C-bug +T-rustdoc |
I have narrowed this down to #66364. There some interaction between remap-path-prefix and macros in a dependency. Repro:
This emits a warning:
and the If you want to repro with the rustc sources, set @Centril can you maybe take a look at why this is now broken? |
For now, I'll cc @GuillaumeGomez @eddyb @petrochenkov who probably know more about this than I. |
This comment has been minimized.
This comment has been minimized.
Also relevant: rust/src/librustdoc/html/sources.rs Lines 35 to 55 in 2113659
|
That code sets |
Oh, that's just bad UX and should be fixed independently on not being able to load some file. |
@Mark-Simulacrum Is there any way to use the |
I think it should, but not sure. We have a try build going and once that's done IIRC a command like |
@Mark-Simulacrum Uh oh I can't get anything like https://doc.rust-lang.org/nightly/nightly-rustc even for regular Also, since this seems to affect the whole crate, it's easier to spot at that level:
And that's all the affected crates! Each uses macros from other crates, which define something.
thread_local!(pub static FOO: bool = false);
But with #70642, it works:
However, I have no way to check the CI environment itself, so we'll have to wait for #70642 to land. |
Something
it should probably have created:
|
#70642 landed, let's see what happens in 14-15h from now. |
And the source is back! So I'm closing this issue, and I've opened #70757 for the remaining items. |
https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html
The text was updated successfully, but these errors were encountered: