-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(cargo-rustdoc): use same path by output format logic everywhere #13325
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Thanks for the help! @bors r+ |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
Update cargo 10 commits in 1ae631085f01c1a72d05df1ec81f3759a8360042..7bb7b539558dc88bea44cee4168b6269bf8177b0 2024-01-17 17:26:41 +0000 to 2024-01-20 00:15:32 +0000 - feat: inherit jobserver from env for all kinds of runner (rust-lang/cargo#12776) - Fix static_mut_ref warning. (rust-lang/cargo#13329) - fix(trim-paths): remap common prefix only (rust-lang/cargo#13210) - fix(cargo-rustdoc): use same path by output format logic everywhere (rust-lang/cargo#13325) - chore: Make MSRV=N-2 the workspace default (rust-lang/cargo#13324) - Fix precise-prerelease tracking link. (rust-lang/cargo#13320) - test(pkgid): keep package ID format in sync (rust-lang/cargo#13322) - Improve GitHub Actions CI config (rust-lang/cargo#13317) - Go back to passing an empty `values()` when no features are declared (rust-lang/cargo#13316) - fix(`--package`): accept `?` if it's a valid pkgid spec (rust-lang/cargo#13315) r? ghost
Update cargo 10 commits in 1ae631085f01c1a72d05df1ec81f3759a8360042..7bb7b539558dc88bea44cee4168b6269bf8177b0 2024-01-17 17:26:41 +0000 to 2024-01-20 00:15:32 +0000 - feat: inherit jobserver from env for all kinds of runner (rust-lang/cargo#12776) - Fix static_mut_ref warning. (rust-lang/cargo#13329) - fix(trim-paths): remap common prefix only (rust-lang/cargo#13210) - fix(cargo-rustdoc): use same path by output format logic everywhere (rust-lang/cargo#13325) - chore: Make MSRV=N-2 the workspace default (rust-lang/cargo#13324) - Fix precise-prerelease tracking link. (rust-lang/cargo#13320) - test(pkgid): keep package ID format in sync (rust-lang/cargo#13322) - Improve GitHub Actions CI config (rust-lang/cargo#13317) - Go back to passing an empty `values()` when no features are declared (rust-lang/cargo#13316) - fix(`--package`): accept `?` if it's a valid pkgid spec (rust-lang/cargo#13315) r? ghost
Update cargo 10 commits in 1ae631085f01c1a72d05df1ec81f3759a8360042..7bb7b539558dc88bea44cee4168b6269bf8177b0 2024-01-17 17:26:41 +0000 to 2024-01-20 00:15:32 +0000 - feat: inherit jobserver from env for all kinds of runner (rust-lang/cargo#12776) - Fix static_mut_ref warning. (rust-lang/cargo#13329) - fix(trim-paths): remap common prefix only (rust-lang/cargo#13210) - fix(cargo-rustdoc): use same path by output format logic everywhere (rust-lang/cargo#13325) - chore: Make MSRV=N-2 the workspace default (rust-lang/cargo#13324) - Fix precise-prerelease tracking link. (rust-lang/cargo#13320) - test(pkgid): keep package ID format in sync (rust-lang/cargo#13322) - Improve GitHub Actions CI config (rust-lang/cargo#13317) - Go back to passing an empty `values()` when no features are declared (rust-lang/cargo#13316) - fix(`--package`): accept `?` if it's a valid pkgid spec (rust-lang/cargo#13315) r? ghost
Update cargo 10 commits in 1ae631085f01c1a72d05df1ec81f3759a8360042..7bb7b539558dc88bea44cee4168b6269bf8177b0 2024-01-17 17:26:41 +0000 to 2024-01-20 00:15:32 +0000 - feat: inherit jobserver from env for all kinds of runner (rust-lang/cargo#12776) - Fix static_mut_ref warning. (rust-lang/cargo#13329) - fix(trim-paths): remap common prefix only (rust-lang/cargo#13210) - fix(cargo-rustdoc): use same path by output format logic everywhere (rust-lang/cargo#13325) - chore: Make MSRV=N-2 the workspace default (rust-lang/cargo#13324) - Fix precise-prerelease tracking link. (rust-lang/cargo#13320) - test(pkgid): keep package ID format in sync (rust-lang/cargo#13322) - Improve GitHub Actions CI config (rust-lang/cargo#13317) - Go back to passing an empty `values()` when no features are declared (rust-lang/cargo#13316) - fix(`--package`): accept `?` if it's a valid pkgid spec (rust-lang/cargo#13315) r? ghost
What does this PR try to resolve?
Different rustdoc output format places output artifact at different paths. This PR introduces a helper function that can be used whenever we needs to address the output artifact.
Fixes #13303
How should we test and review this PR?
The change is covered by the existing tests and the modified
rustdoc_simple_json
test.Additional information
N/A