Skip to content

Commit fdde42d

Browse files
committed
Skip bitfield unit tests on big-endian platforms.
Fixes rust-lang#1412.
1 parent 35a349d commit fdde42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod struct_layout;
77
#[cfg(test)]
88
#[allow(warnings)]
99
pub(crate) mod bitfield_unit;
10-
#[cfg(test)]
10+
#[cfg(all(test, target_endian = "little"))]
1111
mod bitfield_unit_tests;
1212

1313
use self::helpers::attributes;

0 commit comments

Comments
 (0)