Uh oh!
There was an error while loading. Please reload this page.
add append to vec with tests and benchmarks - #21330
Conversation
rust-highfive
commented
Jan 17, 2015
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
There was a problem hiding this comment.
Does vec![] not infer correctly here?
Gankra
commented
Jan 17, 2015
Generally we only add benchmarks when we're trying to establish that a change has a desired performance impact. Adding them for every feature is kinda unwieldy (just slows everything else down). |
Gankra
commented
Jan 17, 2015
Actual code seems legit, just style nits. 👍 |
JeffBelgum
commented
Jan 17, 2015
I've addressed the previous comments. |
Gankra
commented
Jan 17, 2015
Oh derp. Yeah no worries. |
There was a problem hiding this comment.
I would still drop these benches.
Gankra
commented
Jan 17, 2015
r=me with benches removed, and commits squashed. |
74e4f3e to
08e712eCompareJeffBelgum
commented
Jan 18, 2015
r=Gankro |
…-add-append-and-split-off, r=Gankro Please review carefully. Contains unsafe and is my first commit to Rust. Uses ptr::copy_nonoverlapping_memory. Attempts to handle zero-size types correctly.
Gankra
commented
Jan 18, 2015
Congrats! Hope to see more from you in the future. 😄 |
mneumann
commented
Jan 19, 2015
I am a bit unhappy about the naming, as it's moving the elements out of the argument. I wouldn't expect that. But I don't have a better name for it... |
Gankra
commented
Jan 19, 2015
This name was accepted in an RFC: rust-lang/rfcs#509 |
mneumann
commented
Jan 20, 2015
ok. would have been cleaner to have sth. like |
andrewrk
commented
Jan 20, 2015
Why does |
mneumann
commented
Jan 21, 2015
@andrewrk: Hm, after thinking about it, yes |
mneumann
commented
Jan 21, 2015
Ok, we have |
Gankra
commented
Jan 21, 2015
basically nothing in Rust actually uses the term |
Gankra
commented
Jan 21, 2015
And push_all is a non-normative performance hack |
huonw
commented
Jan 21, 2015
(There's |
mneumann
commented
Jan 21, 2015
@gankro: In the past there was |
Fix indent for convert_to_guarded_return
Please review carefully. Contains unsafe and is my first commit to Rust.
Uses ptr::copy_nonoverlapping_memory. Attempts to handle zero-size types correctly.