@@ -95,11 +95,13 @@ On x86_64, when the `outline-atomics` optional feature is not enabled and `cmpxc
9595#![ cfg_attr( not( portable_atomic_no_unsafe_op_in_unsafe_fn) , warn( unsafe_op_in_unsafe_fn) ) ] // unsafe_op_in_unsafe_fn requires Rust 1.52
9696#![ cfg_attr( portable_atomic_no_unsafe_op_in_unsafe_fn, allow( unused_unsafe) ) ]
9797#![ warn(
98+ clippy:: default_union_representation,
9899 clippy:: exhaustive_enums,
99100 clippy:: exhaustive_structs,
100101 clippy:: inline_asm_x86_att_syntax,
101102 clippy:: missing_inline_in_public_items,
102103 clippy:: pedantic,
104+ clippy:: transmute_undefined_repr,
103105 clippy:: undocumented_unsafe_blocks
104106) ]
105107#![ allow(
@@ -1378,16 +1380,18 @@ atomic instructions or locks will be used.
13781380 any( portable_atomic_target_feature_lse, target_feature = "lse" ) ,
13791381 ) ,
13801382 portable_atomic_armv5te,
1381- all ( target_arch = "mips" , target_endian = "little" ) ,
1382- all ( target_arch = "mips64" , target_endian = "little" ) ,
1383+ target_arch = "mips" ,
1384+ target_arch = "mips64" ,
13831385 target_arch = "powerpc" ,
13841386 target_arch = "powerpc64" ,
13851387 ) ) ]
13861388 {
13871389 // HACK: the following operations are currently broken (at least on qemu):
1388- // - aarch64+lse 's `AtomicI{8,16}::fetch_{max,min}` (release mode)
1390+ // - aarch64's `AtomicI{8,16}::fetch_{max,min}` (release mode + lse )
13891391 // - armv5te's `Atomic{I,U}{8,16}::fetch_{max,min}`
1392+ // - mips's `AtomicI8::fetch_{max,min}` (release mode)
13901393 // - mipsel's `AtomicI{8,16}::fetch_{max,min}` (debug mode, at least)
1394+ // - mips64's `AtomicI8::fetch_{max,min}` (release mode)
13911395 // - mips64el's `AtomicI{8,16}::fetch_{max,min}` (debug mode, at least)
13921396 // - powerpc's `AtomicI{8,16}::fetch_{max,min}`
13931397 // - powerpc64's `AtomicI{8,16}::fetch_{max,min}` (debug mode, at least)
@@ -1445,16 +1449,18 @@ atomic instructions or locks will be used.
14451449 any( portable_atomic_target_feature_lse, target_feature = "lse" ) ,
14461450 ) ,
14471451 portable_atomic_armv5te,
1448- all ( target_arch = "mips" , target_endian = "little" ) ,
1449- all ( target_arch = "mips64" , target_endian = "little" ) ,
1452+ target_arch = "mips" ,
1453+ target_arch = "mips64" ,
14501454 target_arch = "powerpc" ,
14511455 target_arch = "powerpc64" ,
14521456 ) ) ]
14531457 {
14541458 // HACK: the following operations are currently broken (at least on qemu):
14551459 // - aarch64's `AtomicI{8,16}::fetch_{max,min}` (release mode + lse)
14561460 // - armv5te's `Atomic{I,U}{8,16}::fetch_{max,min}`
1461+ // - mips's `AtomicI8::fetch_{max,min}` (release mode)
14571462 // - mipsel's `AtomicI{8,16}::fetch_{max,min}` (debug mode, at least)
1463+ // - mips64's `AtomicI8::fetch_{max,min}` (release mode)
14581464 // - mips64el's `AtomicI{8,16}::fetch_{max,min}` (debug mode, at least)
14591465 // - powerpc's `AtomicI{8,16}::fetch_{max,min}`
14601466 // - powerpc64's `AtomicI{8,16}::fetch_{max,min}` (debug mode, at least)
0 commit comments