-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Ignore rustc_private items from std docs #76571
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
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.
Thanks so much for working on this! Just a few nits.
de818c4
to
43cce69
Compare
7679606
to
1444a89
Compare
// | ||
// NOTE: This cannot be added to `LINKCHECK_EXCEPTIONS` because the resolved path | ||
// calculated in `check` function is outside `build/<triple>/doc` dir. | ||
// So the `strip_prefix` method just returns the old absolute broken path. |
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.
Yeah, this comment seems fine. nit: this could be else if
so you don't need the early return, but won't block on that
r? @jyn514 |
1444a89
to
ccd7611
Compare
I removed all the added doc to make this patch smaller to be able to backport. |
Oh, I don't think there's need for that, the comments won't hurt anything. It's logic changes I'm worried about backporting. @bors r+ on getting this into nightly. Now about getting this into beta: @rust-lang/rustdoc I see three options:
Personally I'm in favor of 3, but I'm willing to be convinced by 2. What do you think? |
📌 Commit ccd76110bfcd0339d70f554f5901443dd551fdbf has been approved by |
cc also @alexcrichton who wrote #73771 |
@bors r- CI is failing, but LGTM when fixed, maybe add back the comments while you're at it |
ccd7611
to
c3d048a
Compare
Fixed the tidy error,
I will add them back in other cleanup PRs. @rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
Yeah, I'm sorry. But GitHub could improve their compare page. @@ src/tools/linkchecker/main.rs: fn is_exception(file: &Path, link: &str) -> bool
+ // calculated in `check` function is outside `build/<triple>/doc` dir.
+ // So the `strip_prefix` method just returns the old absolute broken path.
+ if file.ends_with("std/primitive.slice.html") {
-+ if link.ends_with("std/primitive.slice.html") {
++ if link.ends_with("primitive.slice.html") {
+ return true;
+ }
+ }
I simply removed the "std/" prefix, cause windows path (in this case has type lossy &str) usually has |
Yeah, I've suggested this before (isaacs/github#1834) but it was ignored. Ok, the change looks fine. @bors r+ |
📌 Commit c743fc4 has been approved by |
Yeah, that's sad. But I think running range-diff still requires more calculation power than just normal diff. |
☀️ Test successful - checks-actions, checks-azure |
Finally! 🎉 |
@lzutao to backport this to beta, make a PR with the same commits, but against the |
@rust-lang/rustdoc this is waiting on a decision about backporting: #76571 (comment) |
This comment has been minimized.
This comment has been minimized.
Is there any reason why we shouldn't? If not I guess it's fine to approve the backport. |
…ulacrum [beta] backports * Ignore rustc_private items from std docs rust-lang#76571 * Fix HashMap visualizers in Visual Studio (Code) rust-lang#76389 * Account for version number in NtIdent hack rust-lang#76331 * Account for async functions when suggesting new named lifetime rust-lang#75867 * Fix loading pretty-printers in rust-lldb script rust-lang#76015 This also bumps to the released stable compiler.
Add some docs to rustdoc::clean::inline and def_id functions Split from rust-lang#76571 .
By ignoring rustc_private items for non local impl block,
this may fix #74672 and fix #75588 .
This might suppress #76529 if it is simple enough for backport.