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 8e62244 + 3ab3c3b commit 17bbd1eCopy full SHA for 17bbd1e
build.rs
@@ -65,6 +65,16 @@ fn main() {
65
None => return,
66
};
67
68
+ if rustc >= 80 {
69
+ println!("cargo:rustc-check-cfg=cfg(anyhow_nightly_testing)");
70
+ println!("cargo:rustc-check-cfg=cfg(anyhow_no_fmt_arguments_as_str)");
71
+ println!("cargo:rustc-check-cfg=cfg(anyhow_no_ptr_addr_of)");
72
+ println!("cargo:rustc-check-cfg=cfg(anyhow_no_unsafe_op_in_unsafe_fn_lint)");
73
+ println!("cargo:rustc-check-cfg=cfg(doc_cfg)");
74
+ println!("cargo:rustc-check-cfg=cfg(error_generic_member_access)");
75
+ println!("cargo:rustc-check-cfg=cfg(std_backtrace)");
76
+ }
77
+
78
if rustc < 51 {
79
// core::ptr::addr_of
80
// https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#stabilized-apis
0 commit comments