We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ca16a0 + 1385671 commit d8c0371Copy full SHA for d8c0371
build.rs
@@ -58,7 +58,8 @@ fn main() {
58
process::exit(1);
59
}
60
61
- let semver_exempt = cfg!(procmacro2_semver_exempt);
+ let docs_rs = env::var_os("DOCS_RS").is_some();
62
+ let semver_exempt = cfg!(procmacro2_semver_exempt) || docs_rs;
63
if semver_exempt {
64
// https://github.com/dtolnay/proc-macro2/issues/147
65
println!("cargo:rustc-cfg=procmacro2_semver_exempt");
0 commit comments