rust-lang / rust-lang/rust

Tracking Issue for `Duration::div_duration_floor()` and `Duration::div_duration_ceil()`

Open
#149,573 2 comments 0 reactions 1 assignee View on GitHub

@max-heller is already working on this.

Since Dec 4, 2025.

C-tracking-issue T-libs
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Feature gate: #![feature(duration_integer_division)]

This is a tracking issue for https://github.com/rust-lang/libs-team/issues/706

Adds integer division methods for core::time::Duration paralleling Duration::div_duration_{f32,f64}().

Public API
// core::time

impl Duration {
    const fn div_duration_floor(self, rhs: Self) -> u128;
    const fn div_duration_ceil(self, rhs: Self) -> u128;
}
Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

  • ACP: rust-lang/libs-team#706
  • Implementation: rust-lang/rust/pull/149582
  • Final comment period (FCP)^1
  • Stabilization PR
Unresolved Questions
  • None yet.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.