File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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,
You can’t perform that action at this time.
0 commit comments