Skip to content

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Aug 10, 2025

The docs.rs behavior that led to #309 and required #310 has been fixed in Cargo and docs.rs by rust-lang/cargo#10395 + rust-lang/docs.rs#1800. Since the fix, all the flags from package.metadata.docs.rs.rustc-args are now correctly applied to build script compilation as well, so we no longer need the additional logic to get --cfg=procmacro2_semver_exempt turned on during docs.rs builds.

proc-macro2/Cargo.toml

Lines 15 to 16 in 6f40165

[package.metadata.docs.rs]
rustc-args = ["--cfg=procmacro2_semver_exempt"]

@dtolnay dtolnay merged commit fe7d2fa into master Aug 10, 2025
26 checks passed
@dtolnay dtolnay deleted the docsrs branch August 10, 2025 23:37
@dtolnay
Copy link
Owner Author

dtolnay commented Aug 10, 2025

Successful documentation build: https://docs.rs/proc-macro2/1.0.96/proc_macro2/struct.Span.html

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.

1 participant