Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Mention workaround for floats in Iterator::{min, max} #85730

Merged
merged 3 commits into from
May 27, 2021

Conversation

syvb
Copy link
Contributor

@syvb syvb commented May 26, 2021

Iterator::{min, max} can't be used with iterators of floats due to NaN issues. This suggests a workaround in the documentation of those functions.

@rust-highfive
Copy link
Collaborator

r? @dtolnay

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 26, 2021
library/core/src/iter/traits/iterator.rs Outdated Show resolved Hide resolved
library/core/src/iter/traits/iterator.rs Outdated Show resolved Hide resolved
syvb and others added 2 commits May 26, 2021 20:38
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
@m-ou-se m-ou-se assigned m-ou-se and unassigned dtolnay May 27, 2021
@m-ou-se
Copy link
Member

m-ou-se commented May 27, 2021

Thanks!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 27, 2021

📌 Commit b00f6fc has been approved by m-ou-se

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 27, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request May 27, 2021
…laumeGomez

Rollup of 3 pull requests

Successful merges:

 - rust-lang#85722 (Fix trait methods' toggle)
 - rust-lang#85730 (Mention workaround for floats in Iterator::{min, max})
 - rust-lang#85738 (Rename opensbd to openbsd)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e30192a into rust-lang:master May 27, 2021
@rustbot rustbot added this to the 1.54.0 milestone May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants