-
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: Link to the docs on namespaces when an unknown disambiguator is found #83866
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great thank you.
48e36dd
to
2d7c9a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be nice to add a test to make sure the link versioning is done correctly, but it's probably not worth it. Two nits, r=me
after that.
FYI, you have merge conflicts. |
This isn't possible, there's no way to run a nightly compiler as if it's stable (cc #83722) |
This comment has been minimized.
This comment has been minimized.
cb8fea9
to
8fda6df
Compare
This comment has been minimized.
This comment has been minimized.
8fda6df
to
4f77f9b
Compare
@bors r=camelid |
📌 Commit 4f77f9b has been approved by |
src/librustdoc/clean/types.rs
Outdated
// NOTE: intentionally doesn't pass crate name to avoid having | ||
// different primitive links between crates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming you removed this comment because it's outdated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes: that was a comment about the UnstableFeatures
call, which was removed.
rustdoc: Link to the docs on namespaces when an unknown disambiguator is found cc rust-lang#83859 `@lopopolo` does this look about like what you expected? r? `@camelid`
This comment has been minimized.
This comment has been minimized.
4f77f9b
to
77c446e
Compare
This comment has been minimized.
This comment has been minimized.
This doesn't update main.js because it's included as a fixed string.
77c446e
to
3478f83
Compare
@bors r=camelid |
📌 Commit 3478f83 has been approved by |
I notice that there a few places in |
@camelid that isn't possible, because main.js is a static file and can't be modified at runtime (it's in the commit message). |
Yes, it's a static file, but we know what channel we're on when we include the static file, right? |
Modifying the file directly would probably be annoying and would require weird template magic, but we could generate a static file that contains the toolchain info, and |
I don't know what you mean by "when we include the static file". That happens at compile-time with |
That seems like overkill for just linking to /nightly/ instead of /stable/ though? |
Oops, I see what you mean now. I got confused by the difference between "compiling rustdoc", "running rustdoc", and "running rustdoc JS". It's like bootstrapping ;)
Yeah, I guess it's not worth it after all 🙃 |
☀️ Test successful - checks-actions |
Note that this PR is being fully reverted by #84950. |
@pietroalbini please don't, I left a comment on that PR that should fix the beta failure. |
…rk-Simulacrum Revert PR 83866 rust-lang#83866 caused multiple test failures when Rust's channel is changed from nightly to anything else. The PR will have to be landed again after the test suite is fixed. The two kinds of test failures were: * Rustdoc tests failed because the links in the generated HTML didn't point at nightly anymore, see rust-lang#84909 (comment) * Rustdoc UI tests failed because the links included in error messages didn't point at nightly anymore, see rust-lang#84909 (comment) r? `@Mark-Simulacrum` cc `@jyn514`
…rk-Simulacrum Revert PR 83866 rust-lang#83866 caused multiple test failures when Rust's channel is changed from nightly to anything else. The PR will have to be landed again after the test suite is fixed. The two kinds of test failures were: * Rustdoc tests failed because the links in the generated HTML didn't point at nightly anymore, see rust-lang#84909 (comment) * Rustdoc UI tests failed because the links included in error messages didn't point at nightly anymore, see rust-lang#84909 (comment) r? ``@Mark-Simulacrum`` cc ``@jyn514``
cc #83859
@lopopolo does this look about like what you expected?
r? @camelid