Skip to content

Commit ebe7cf1

Browse files
committed
Delete no_unsafe_op_in_unsafe_fn_lint configuration
1 parent a381bff commit ebe7cf1

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

build.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,9 @@ fn main() {
1212

1313
if compiler >= 80 {
1414
println!("cargo:rustc-check-cfg=cfg(no_nonzero_bitscan)");
15-
println!("cargo:rustc-check-cfg=cfg(no_unsafe_op_in_unsafe_fn_lint)");
1615
println!("cargo:rustc-check-cfg=cfg(test_node_semver)");
1716
}
1817

19-
if compiler < 52 {
20-
// #![deny(unsafe_op_in_unsafe_fn)].
21-
// https://github.com/rust-lang/rust/issues/71668
22-
println!("cargo:rustc-cfg=no_unsafe_op_in_unsafe_fn_lint");
23-
}
24-
2518
if compiler < 53 {
2619
// Efficient intrinsics for count-leading-zeros and count-trailing-zeros
2720
// on NonZero integers stabilized in 1.53.0. On many architectures these

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
#![doc(html_root_url = "https://docs.rs/semver/1.0.26")]
6464
#![cfg_attr(docsrs, feature(doc_cfg))]
6565
#![cfg_attr(not(feature = "std"), no_std)]
66-
#![cfg_attr(not(no_unsafe_op_in_unsafe_fn_lint), deny(unsafe_op_in_unsafe_fn))]
67-
#![cfg_attr(no_unsafe_op_in_unsafe_fn_lint, allow(unused_unsafe))]
66+
#![deny(unsafe_op_in_unsafe_fn)]
6867
#![allow(
6968
clippy::cast_lossless,
7069
clippy::cast_possible_truncation,

0 commit comments

Comments
 (0)