Skip to content

Commit 7c2d6e1

Browse files
committed
bump Rust, nightly needs a patch
1 parent 0a4bf7c commit 7c2d6e1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

rust-src.diff

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/library/core/tests/fmt/num.rs b/library/core/tests/fmt/num.rs
2+
index 1ddcd5ab795..bc387a46ea7 100644
3+
--- a/library/core/tests/fmt/num.rs
4+
+++ b/library/core/tests/fmt/num.rs
5+
@@ -152,8 +152,11 @@ fn test_format_int_exp_precision() {
6+
assert_eq!(format!("{:+10.3e}", 1), " +1.000e0");
7+
8+
// test precision remains correct when rounding to next power
9+
-
10+
- for i in i16::MIN..=i16::MAX {
11+
+ #[cfg(miri)] // can't cover all of `i16` in Miri
12+
+ let range = [i16::MIN, -1, 1, i16::MAX];
13+
+ #[cfg(not(miri))]
14+
+ let range = i16::MIN..=i16::MAX;
15+
+ for i in range {
16+
for p in 0..=5 {
17+
assert_eq!(
18+
format!("{i:.p$e}"),

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2023-10-22
1+
nightly-2023-11-15

0 commit comments

Comments
 (0)