File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ jobs:
108108 # Tests for the portable software backend
109109 soft :
110110 env :
111- RUSTFLAGS : " -Dwarnings --cfg poly1305_force_soft "
111+ RUSTFLAGS : ' -Dwarnings --cfg poly1305_backend="soft" '
112112 runs-on : ubuntu-latest
113113 strategy :
114114 matrix :
Original file line number Diff line number Diff line change @@ -24,4 +24,7 @@ hex-literal = "1"
2424
2525[lints .rust .unexpected_cfgs ]
2626level = " warn"
27- check-cfg = [" cfg(fuzzing)" , " cfg(poly1305_force_soft)" ]
27+ check-cfg = [
28+ ' cfg(fuzzing)' ,
29+ ' cfg(poly1305_backend, values("soft"))'
30+ ]
Original file line number Diff line number Diff line change 22
33#[ cfg( all(
44 any( target_arch = "x86" , target_arch = "x86_64" ) ,
5- not( poly1305_force_soft )
5+ not( poly1305_backend = "soft" )
66) ) ]
77pub ( crate ) mod avx2;
88
99#[ cfg( all(
1010 any( target_arch = "x86" , target_arch = "x86_64" ) ,
11- not( poly1305_force_soft )
11+ not( poly1305_backend = "soft" )
1212) ) ]
1313pub ( crate ) mod autodetect;
1414
Original file line number Diff line number Diff line change @@ -19,21 +19,21 @@ mod backend;
1919
2020#[ cfg( all(
2121 any( target_arch = "x86" , target_arch = "x86_64" ) ,
22- not( poly1305_force_soft ) ,
22+ not( poly1305_backend = "soft" ) ,
2323 target_feature = "avx2" , // Fuzz tests bypass AVX2 autodetection code
2424 any( fuzzing, test)
2525) ) ]
2626mod fuzz;
2727
2828#[ cfg( all(
2929 any( target_arch = "x86" , target_arch = "x86_64" ) ,
30- not( poly1305_force_soft )
30+ not( poly1305_backend = "soft" )
3131) ) ]
3232use crate :: backend:: autodetect:: State ;
3333
3434#[ cfg( not( all(
3535 any( target_arch = "x86" , target_arch = "x86_64" ) ,
36- not( poly1305_force_soft )
36+ not( poly1305_backend = "soft" )
3737) ) ) ]
3838use crate :: backend:: soft:: State ;
3939
@@ -121,7 +121,7 @@ impl Debug for Poly1305 {
121121
122122#[ cfg( all(
123123 any( target_arch = "x86" , target_arch = "x86_64" ) ,
124- not( poly1305_force_soft ) ,
124+ not( poly1305_backend = "soft" ) ,
125125 target_feature = "avx2" , // Fuzz tests bypass AVX2 autodetection code
126126 any( fuzzing, test)
127127) ) ]
You can’t perform that action at this time.
0 commit comments