Skip to content

Commit 87ac88f

Browse files
committed
Update tests.
1 parent 25ccdae commit 87ac88f

5 files changed

+13
-10
lines changed

Diff for: tests/mir-opt/funky_arms.float_to_exponential_common.GVN.32bit.panic-abort.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
StorageLive(_20);
4848
StorageLive(_21);
4949
_21 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
50-
_20 = BitAnd(move _21, const core::fmt::flags::SIGN_PLUS_FLAG);
50+
_20 = BitAnd(move _21, const core::fmt::rt::SIGN_PLUS_FLAG);
5151
StorageDead(_21);
5252
_4 = Ne(move _20, const 0_u32);
5353
StorageDead(_20);
@@ -72,7 +72,7 @@
7272
StorageLive(_22);
7373
StorageLive(_23);
7474
_23 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
75-
_22 = BitAnd(move _23, const core::fmt::flags::PRECISION_FLAG);
75+
_22 = BitAnd(move _23, const core::fmt::rt::PRECISION_FLAG);
7676
StorageDead(_23);
7777
switchInt(move _22) -> [0: bb10, otherwise: bb11];
7878
}

Diff for: tests/mir-opt/funky_arms.float_to_exponential_common.GVN.32bit.panic-unwind.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
StorageLive(_20);
4848
StorageLive(_21);
4949
_21 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
50-
_20 = BitAnd(move _21, const core::fmt::flags::SIGN_PLUS_FLAG);
50+
_20 = BitAnd(move _21, const core::fmt::rt::SIGN_PLUS_FLAG);
5151
StorageDead(_21);
5252
_4 = Ne(move _20, const 0_u32);
5353
StorageDead(_20);
@@ -72,7 +72,7 @@
7272
StorageLive(_22);
7373
StorageLive(_23);
7474
_23 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
75-
_22 = BitAnd(move _23, const core::fmt::flags::PRECISION_FLAG);
75+
_22 = BitAnd(move _23, const core::fmt::rt::PRECISION_FLAG);
7676
StorageDead(_23);
7777
switchInt(move _22) -> [0: bb10, otherwise: bb11];
7878
}

Diff for: tests/mir-opt/funky_arms.float_to_exponential_common.GVN.64bit.panic-abort.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
StorageLive(_20);
4848
StorageLive(_21);
4949
_21 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
50-
_20 = BitAnd(move _21, const core::fmt::flags::SIGN_PLUS_FLAG);
50+
_20 = BitAnd(move _21, const core::fmt::rt::SIGN_PLUS_FLAG);
5151
StorageDead(_21);
5252
_4 = Ne(move _20, const 0_u32);
5353
StorageDead(_20);
@@ -72,7 +72,7 @@
7272
StorageLive(_22);
7373
StorageLive(_23);
7474
_23 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
75-
_22 = BitAnd(move _23, const core::fmt::flags::PRECISION_FLAG);
75+
_22 = BitAnd(move _23, const core::fmt::rt::PRECISION_FLAG);
7676
StorageDead(_23);
7777
switchInt(move _22) -> [0: bb10, otherwise: bb11];
7878
}

Diff for: tests/mir-opt/funky_arms.float_to_exponential_common.GVN.64bit.panic-unwind.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
StorageLive(_20);
4848
StorageLive(_21);
4949
_21 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
50-
_20 = BitAnd(move _21, const core::fmt::flags::SIGN_PLUS_FLAG);
50+
_20 = BitAnd(move _21, const core::fmt::rt::SIGN_PLUS_FLAG);
5151
StorageDead(_21);
5252
_4 = Ne(move _20, const 0_u32);
5353
StorageDead(_20);
@@ -72,7 +72,7 @@
7272
StorageLive(_22);
7373
StorageLive(_23);
7474
_23 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
75-
_22 = BitAnd(move _23, const core::fmt::flags::PRECISION_FLAG);
75+
_22 = BitAnd(move _23, const core::fmt::rt::PRECISION_FLAG);
7676
StorageDead(_23);
7777
switchInt(move _22) -> [0: bb10, otherwise: bb11];
7878
}

Diff for: tests/ui/unpretty/flattened-format-args.stdout

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ fn main() {
99
let x = 1;
1010
// Should flatten to println!("a 123 b {x} xyz\n"):
1111
{
12-
::std::io::_print(format_arguments::new_v1(&["a 123 b ", " xyz\n"],
13-
&[format_argument::new_display(&x)]));
12+
::std::io::_print(format_arguments::new(unsafe {
13+
format_template::new(&[format_piece::num(8u64),
14+
format_piece::str("a 123 b "), format_piece::num(5u64),
15+
format_piece::str(" xyz\n"), format_piece::num(0u64)])
16+
}, &[format_argument::new_display(&x)]));
1417
};
1518
}

0 commit comments

Comments
 (0)