Skip to content

Commit 539e831

Browse files
committed
Detect whether unsafe_op_in_unsafe_fn lint is available
1 parent afb298e commit 539e831

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ fn main() {
6868
// core::fmt::Arguments::as_str
6969
// https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html#stabilized-apis
7070
println!("cargo:rustc-cfg=anyhow_no_fmt_arguments_as_str");
71+
72+
// #![deny(unsafe_op_in_unsafe_fn)]
73+
// https://github.com/rust-lang/rust/issues/71668
74+
println!("cargo:rustc-cfg=anyhow_no_unsafe_op_in_unsafe_fn_lint");
7175
}
7276
}
7377

0 commit comments

Comments
 (0)