Skip to content

Commit e24af6c

Browse files
committed
the formatting issue got fixed
1 parent 72be9a6 commit e24af6c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libcore/tests/fmt/builders.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ mod debug_list {
488488
}
489489

490490
#[test]
491+
#[cfg(not(miri))] // FIXME uses code in liballoc, investigate Stacked Borrows failure
491492
fn test_formatting_parameters_are_forwarded() {
492493
use std::collections::{BTreeMap, BTreeSet};
493494
#[derive(Debug)]

src/libcore/tests/fmt/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
#![cfg(not(miri))] // FIXME: A bug in Miri breaks padding in string formatting
2-
31
mod builders;
42
mod float;
53
mod num;
64

75
#[test]
6+
#[cfg(not(miri))] // Miri cannot print pointers
87
fn test_format_flags() {
98
// No residual flags left by pointer formatting
109
let p = "".as_ptr();
@@ -14,6 +13,7 @@ fn test_format_flags() {
1413
}
1514

1615
#[test]
16+
#[cfg(not(miri))] // Miri cannot print pointers
1717
fn test_pointer_formats_data_pointer() {
1818
let b: &[u8] = b"";
1919
let s: &str = "";

src/libcore/tests/time.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ fn debug_formatting_precision_two() {
287287
}
288288

289289
#[test]
290-
#[cfg(not(miri))] // FIXME: A bug in Miri breaks padding in string formatting
291290
fn debug_formatting_precision_high() {
292291
assert_eq!(format!("{:.5?}", Duration::new(0, 23_678)), "23.67800µs");
293292

0 commit comments

Comments
 (0)