run miri on CI

This commit is contained in:
Ralf Jung
2019-11-16 09:51:07 +01:00
parent 9beb753473
commit 9ed6941a51
4 changed files with 19 additions and 0 deletions
+1
View File
@@ -63,6 +63,7 @@ pub unsafe fn encode_utf8(ch: char, ptr: *mut u8, len: usize) -> Result<usize, E
#[test]
#[cfg(not(miri))] // Miri is too slow
fn test_encode_utf8() {
// Test that all codepoints are encoded correctly
let mut data = [0u8; 16];