Skip to content

fix rustdoc-json & coverage for proc-macro crates with custom rustc_args - #3440

Merged
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:fix-procmacro-json
Aug 11, 2026
Merged

fix rustdoc-json & coverage for proc-macro crates with custom rustc_args#3440
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:fix-procmacro-json

Conversation

@syphar

@syphar syphar commented Aug 11, 2026

Copy link
Copy Markdown
Member

Weird corner-case. I was digging into cases where we still don't get rustdoc-json for some crates.

In 3f92a79 we added -Zhost-config, -Ztarget-applies-to-host, and --config host.rustflags={} to also pass custom rustc_args to build scripts. This works because we always pass --target to doc builds.

In case of proc-macro builds it's different: we don't pass --target, so the args above lead to our custom build.rustdocflags config being ignored, including custom rustdocflags from the metadata, or --output-format json from us.

This removes target-applies-to-host for proc-macro crates.

for now I wouldn't try to rebuild rustdoc-json, since it's super tricky to find the affected crates. This could be a part of a general backfill.

@syphar syphar self-assigned this Aug 11, 2026
@syphar
syphar requested a review from a team as a code owner August 11, 2026 18:45
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Aug 11, 2026
@syphar
syphar force-pushed the fix-procmacro-json branch from d68a99d to b0d02a8 Compare August 11, 2026 18:49
@syphar
syphar force-pushed the fix-procmacro-json branch from b0d02a8 to 1698ec0 Compare August 11, 2026 18:51
@syphar

syphar commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

r? @GuillaumeGomez

@rustbot rustbot assigned GuillaumeGomez and unassigned syphar Aug 11, 2026
@GuillaumeGomez

Copy link
Copy Markdown
Member

Thanks!

@GuillaumeGomez
GuillaumeGomez merged commit a3924a2 into rust-lang:main Aug 11, 2026
11 checks passed
@GuillaumeGomez
GuillaumeGomez deleted the fix-procmacro-json branch August 11, 2026 19:51
@github-actions github-actions Bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Aug 11, 2026
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants