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

vec: make the move iterator fast for all types #10995

Merged
merged 1 commit into from
Dec 16, 2013
Merged

vec: make the move iterator fast for all types #10995

merged 1 commit into from
Dec 16, 2013

Conversation

thestinger
Copy link
Contributor

Closes #10976

Taken from https://github.com/thestinger/rust-core/commit/863fbaaa125f1bb290e28cbf22236406cf0aebcf, so it will be easily updated to the better vector representation too.

bors added a commit that referenced this pull request Dec 16, 2013
@bors bors closed this Dec 16, 2013
@bors bors merged commit e3b168d into rust-lang:master Dec 16, 2013
@erickt
Copy link
Contributor

erickt commented Dec 16, 2013

Thanks @thestinger!

@thestinger thestinger deleted the fast_move_iter branch December 16, 2013 23:30
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 4, 2024
…ednet

new lint `legacy_numeric_constants`

Rework of rust-lang#10997

- uses diagnostic items
- does not lint imports of the float modules (`use std::f32`)
- does not lint usage of float constants that look like `f32::MIN`

I chose to make the float changes because the following pattern is actually pretty useful
```rust
use std::f32;
let omega = freq * 2 * f32::consts::PI;
```
and the float modules are not TBD-deprecated like the integer modules.

Closes rust-lang#10995

---

changelog: New lint [`legacy_numeric_constants`]
[rust-lang#12312](rust-lang/rust-clippy#12312)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize vec::MoveIterator for POD types
3 participants