Skip to content

Commit c61da29

Browse files
authored
Merge pull request #156 from RalfJung/miri
enable another unwinding test in Miri
2 parents 4f0faaf + b7fd8d6 commit c61da29

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub unsafe fn encode_utf8(ch: char, ptr: *mut u8, len: usize) -> Result<usize, E
6363

6464

6565
#[test]
66-
#[cfg(not(miri))] // Miri is too slow
66+
#[cfg_attr(miri, ignore)] // Miri is too slow
6767
fn test_encode_utf8() {
6868
// Test that all codepoints are encoded correctly
6969
let mut data = [0u8; 16];

tests/tests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ fn test_drop() {
165165
}
166166

167167
#[test]
168-
#[cfg(not(miri))] // Miri does not support unwinding
169168
fn test_drop_panics() {
170169
use std::cell::Cell;
171170
use std::panic::catch_unwind;

0 commit comments

Comments
 (0)