mirror of
https://github.com/openharmony/third_party_rust_memoffset.git
synced 2026-07-18 12:25:36 -04:00
better way to ignore tests in Miri
This commit is contained in:
+1
-1
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user