better way to ignore tests in Miri

This commit is contained in:
Ralf Jung
2019-12-07 12:17:22 +01:00
parent 8b95fb5233
commit aa4738c356
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ mod tests {
}
#[test]
#[cfg(not(miri))] // this creates unaligned references
#[cfg_attr(miri, ignore)] // this creates unaligned references
fn offset_simple_packed() {
#[repr(C, packed)]
struct Foo {
+1 -1
View File
@@ -177,7 +177,7 @@ mod tests {
}
#[test]
#[cfg(not(miri))] // this creates unaligned references
#[cfg_attr(miri, ignore)] // this creates unaligned references
fn span_simple_packed() {
#[repr(C, packed)]
struct Foo {