rust/src/liballoc
Laurentiu Nicola 38e311e448 Use SetLenOnDrop in Vec::truncate()
This avoids a redundant length check in some cases when calling
`Vec::truncate` or `Vec::clear`.

Fixes #51802
2018-07-31 20:53:53 +03:00
..
benches Move deny(warnings) into rustbuild 2018-04-08 16:59:14 -06:00
collections data_structures: Add a reference wrapper for pointer-indexed maps/sets 2018-07-20 12:22:24 +03:00
tests Rollup merge of #52769 - sinkuu:stray_test, r=alexcrichton 2018-07-28 16:25:04 +08:00
alloc.rs Rename OOM to allocation error 2018-06-18 21:41:24 +02:00
borrow.rs Add #[must_use] to a few standard library methods 2018-03-30 23:06:05 -07:00
boxed.rs Impl Executor for Box<E: Executor> 2018-07-24 17:09:12 -04:00
boxed_test.rs Add missing dyn in liballoc 2018-07-10 22:32:19 +02:00
Cargo.toml Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
fmt.rs Reexport fmt::Alignment into std 2018-06-03 17:04:48 +02:00
lib.rs Deny bare_trait_objects globally 2018-07-25 10:25:29 +09:00
macros.rs fix some typos 2017-11-21 15:33:45 +01:00
prelude.rs Add the alloc::prelude module 2018-07-07 23:08:43 +02:00
raw_vec.rs Move core::alloc::CollectionAllocErr to alloc::collections 2018-06-29 14:01:33 +02:00
rc.rs typos 2018-07-23 12:53:37 +02:00
slice.rs Rollup merge of #51147 - tmccombs:sliceindex, r=SimonSapin 2018-06-02 13:14:25 -06:00
str.rs Rollup merge of #51807 - newpavlov:deprecate_str_slice, r=alexcrichton 2018-07-22 22:10:09 +08:00
string.rs Rollup merge of #51807 - newpavlov:deprecate_str_slice, r=alexcrichton 2018-07-22 22:10:09 +08:00
sync.rs typos 2018-07-23 12:53:37 +02:00
task.rs #[cfg(target_has_atomic_cas)] -> #[cfg(target_has_atomic = "cas")] 2018-07-05 16:52:46 -05:00
vec.rs Use SetLenOnDrop in Vec::truncate() 2018-07-31 20:53:53 +03:00