File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,13 @@ mod features {
186186const _: ( ) = assert ! ( size_of:: <Features >( ) == 0 ) ;
187187
188188cfg_if:: cfg_if! {
189- if #[ cfg( all( target_arch = "aarch64" , target_endian = "little" ) ) ] {
189+ // Don't guard the aarch64/arm branches on `target_endian = "little"`
190+ // because each module contains static assertions for endianness that
191+ // we don't want to skip over.
192+ if #[ cfg( target_arch = "aarch64" ) ] {
190193 pub mod aarch64;
191194 use aarch64:: featureflags;
192- } else if #[ cfg( all ( target_arch = "arm" , target_endian = "little" ) ) ] {
195+ } else if #[ cfg( target_arch = "arm" ) ] {
193196 pub mod arm;
194197 use arm:: featureflags;
195198 } else if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
You can’t perform that action at this time.
0 commit comments