Skip to content
Myr

Detect whether unsafe_op_in_unsafe_fn lint is available

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent afb298e · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:build.rs+4 added
66 unmodified lines
67 if rustc < 52 {68 // core::fmt::Arguments::as_str69 // https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html#stabilized-apis70 println!("cargo:rustc-cfg=anyhow_no_fmt_arguments_as_str");7172 // #![deny(unsafe_op_in_unsafe_fn)]73 // https://github.com/rust-lang/rust/issues/7166874 println!("cargo:rustc-cfg=anyhow_no_unsafe_op_in_unsafe_fn_lint");75 }76}7778fn compile_probe() -> Option<ExitStatus> {
61 unmodified lines