Skip to content

std::time::duration::Duration::span() is backwards #18925

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
ben0x539 opened this issue Nov 13, 2014 · 2 comments · Fixed by #18926
Closed

std::time::duration::Duration::span() is backwards #18925

ben0x539 opened this issue Nov 13, 2014 · 2 comments · Fixed by #18926

Comments

@ben0x539
Copy link
Contributor

Duration::span() returns negative durations!

cc #18858

@alexcrichton
Copy link
Member

Oh dear, I'm so sorry! I'll fix pronto

@ben0x539
Copy link
Contributor Author

Oh, don't worry about "pronto". By current reckoning you'll get the fix in with less than zero delay, I couldn't ask for more than that!

alexcrichton added a commit to alexcrichton/rust that referenced this issue Nov 13, 2014
The subtraction was erroneously backwards, returning negative durations!

Closes rust-lang#18925
bors added a commit that referenced this issue Nov 13, 2014
The subtraction was erroneously backwards, returning negative durations!

Closes #18925
lnicola pushed a commit to lnicola/rust that referenced this issue Jan 20, 2025
feat: Render type parameter projection target bounds in inlays
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants