Skip to content

Commit 65771d6

Browse files
authored
Merge pull request #4656 from rust-lang/rustup-2025-10-30
Automatic Rustup
2 parents fa8b965 + c3d32ed commit 65771d6

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
os: ubuntu-24.04-arm
3232
multiarch: armhf
3333
gcc_cross: arm-linux-gnueabihf
34-
# Disabled due to Ubuntu repo trouble
34+
# Ubuntu mirrors are not reliable enough for these architectures
35+
# (see <https://bugs.launchpad.net/ubuntu/+bug/2130309>).
3536
# - host_target: riscv64gc-unknown-linux-gnu
3637
# os: ubuntu-latest
3738
# multiarch: riscv64
@@ -68,7 +69,7 @@ jobs:
6869
- name: install multiarch
6970
if: ${{ matrix.multiarch != '' }}
7071
run: |
71-
# s390x, ppc64el, riscv64 need Ubuntu Ports to be in the mirror list
72+
# armhf, s390x, ppc64el, riscv64 need Ubuntu Ports to be in the mirror list
7273
sudo bash -c "echo 'https://ports.ubuntu.com/ priority:4' >> /etc/apt/apt-mirrors.txt"
7374
# Add architecture
7475
sudo dpkg --add-architecture ${{ matrix.multiarch }}

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
27050c0d15af664cf43ce4b0badec230e0bfcac5
1+
292be5c7c05138d753bbd4b30db7a3f1a5c914f7

src/clock.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,7 @@ impl Instant {
4646
InstantKind::Virtual { nanoseconds: earlier },
4747
) => {
4848
let duration = nanoseconds.saturating_sub(earlier);
49-
cfg_select! {
50-
bootstrap => {
51-
// `Duration` does not provide a nice constructor from a `u128` of nanoseconds,
52-
// so we have to implement this ourselves.
53-
// It is possible for second to overflow because u64::MAX < (u128::MAX / 1e9).
54-
// It will be saturated to u64::MAX seconds if the value after division exceeds u64::MAX.
55-
let seconds = u64::try_from(duration / 1_000_000_000).unwrap_or(u64::MAX);
56-
// It is impossible for nanosecond to overflow because u32::MAX > 1e9.
57-
let nanosecond = u32::try_from(duration.wrapping_rem(1_000_000_000)).unwrap();
58-
Duration::new(seconds, nanosecond)
59-
}
60-
_ => {
61-
Duration::from_nanos_u128(duration)
62-
}
63-
}
49+
Duration::from_nanos_u128(duration)
6450
}
6551
_ => panic!("all `Instant` must be of the same kind"),
6652
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#![feature(derive_coerce_pointee)]
1818
#![feature(arbitrary_self_types)]
1919
#![feature(iter_advance_by)]
20-
#![cfg_attr(not(bootstrap), feature(duration_from_nanos_u128))]
20+
#![feature(duration_from_nanos_u128)]
2121
// Configure clippy and other lints
2222
#![allow(
2323
clippy::collapsible_else_if,

0 commit comments

Comments
 (0)