File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,3 +31,11 @@ path = "../test_helpers"
3131
3232[dev-dependencies ]
3333std_float = { path = " ../std_float/" , features = [" as_crate" ] }
34+
35+ [lints .rust .unexpected_cfgs ]
36+ level = " warn"
37+ check-cfg = [
38+ # Internal features aren't marked known config by default, we use these to
39+ # gate tests.
40+ ' cfg(target_has_reliable_f16_math)' ,
41+ ]
Original file line number Diff line number Diff line change 11#![ feature( portable_simd) ]
22#![ feature( f16) ]
3+ #![ expect( internal_features) ]
4+ #![ feature( cfg_target_has_reliable_f16_f128) ]
35
46#[ macro_use]
57mod ops_macros;
68
79// FIXME: some f16 operations cause rustc to hang on wasm simd
810// https://github.com/llvm/llvm-project/issues/189251
911#[ cfg( not( all( target_arch = "wasm32" , target_feature = "simd128" ) ) ) ]
12+ #[ cfg( target_has_reliable_f16_math) ]
1013impl_float_tests ! { f16, i16 }
You can’t perform that action at this time.
0 commit comments