Commits
Click on a commit to change the comparison rangeperf(allocator/vec): remove `SetLenOnDrop` (#11079)
Simplify `Vec::truncate` and `Vec::extend_with` methods.
Unlike standard library, our `Vec<'a, T>` requires that `T` is not `Drop`. Therefore we don't need to worry about dropping elements.
There are likely many more places where we can make similar simplifications (optimizations). I've only done these 2 now in order to get rid of `SetLenOnDrop`. I wanted to get rid of it because it requires direct access to `self.buf.len`, which I'd like to make private in a later PR.7 months ago
by overlookmotel