mirror of
https://gitee.com/openharmony/third_party_rust_proc-macro2
synced 2024-11-23 07:19:41 +00:00
Work around when built as a dependency in docs.rs
Our build script has: if cfg!(procmacro2_semver_exempt) { println!("cargo:rustc-cfg=super_unstable"); } But when proc-macro2 is built as a dependency of another crate in docs.rs, we are seeing the builder invoke rustc with `--cfg super_unstable` but without `--cfg procmacro2_semver_exempt`. The super_unstable flag is only set on that one line, so procmacro2_semver_exempt should have also been set. Hopefully this change will result in both flags being passed. We will need to figure out how to set unstable flags only when building our own docs.rs docs, not when building proc-macro2 as a dependency of a different crate.
This commit is contained in:
parent
c239f03ca8
commit
d7568e5332
Loading…
Reference in New Issue
Block a user