rust/src/libstd
blake2-ppc 8d488f38ed std::vec: Fix hazards with uint overflows in unsafe code
Issue #8742

Add the method `.reserve_additional(n: uint)`: Check for overflow in
self.len() + n, and reserve that many elements (rounded up to next power
of two). Does nothing if self.len() + n < self.capacity() already.
2013-09-16 19:13:30 +02:00
..
fmt Document all of the format! related macros 2013-09-15 01:09:00 -07:00
num std::num: Add uint::next_power_of_two_opt 2013-09-16 15:04:48 +02:00
rand std/extra: changing XXX to FIXME; cleanup 2013-08-21 17:17:41 -07:00
rt Remove {uint,int,u64,i64,...}::from_str,from_str_radix 2013-09-15 14:29:16 +02:00
str Some work on std::ascii: Marked unsafe function unsafe, added moving implementations 2013-09-09 15:07:22 +02:00
task Consolidate local_data implementations, and cleanup 2013-08-27 21:29:11 -07:00
unstable Remove all usage of change_dir_locked 2013-09-13 21:58:00 -07:00
at_vec.rs std: rename Option::unwrap_or_default() to unwrap_or() 2013-09-12 18:54:11 -07:00
bool.rs std: Add a bunch of Default impls 2013-09-12 18:54:13 -07:00
borrow.rs std: implement Total{Ord,Eq} for pointers. 2013-08-04 19:46:52 +10:00
c_str.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
cast.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
cell.rs librustc: Ensure that type parameters are in the right positions in paths. 2013-08-27 18:47:57 -07:00
char.rs Use std::iter::range_step 2013-09-15 00:41:34 -04:00
cleanup.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
clone.rs std: Implement Clone and DeepClone for extern "Rust" fn 2013-07-29 19:43:21 +02:00
cmp.rs Now inline default 'ne' methods 2013-08-30 22:02:24 -04:00
comm.rs Add SharedPort wrapper around rt::comm::SharedPort 2013-09-14 22:50:28 +02:00
condition.rs Another followup on #6009. 2013-09-04 18:08:02 +02:00
container.rs container: inline contains_key default method 2013-08-20 22:05:03 -04:00
default.rs std: Add a bunch of Default impls 2013-09-12 18:54:13 -07:00
either.rs std: Add ToEither/IntoEither/AsEither 2013-09-12 18:54:12 -07:00
from_str.rs Add from_str docs 2013-09-05 00:58:12 -04:00
hash.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
hashmap.rs auto merge of #9115 : erickt/rust/master, r=erickt 2013-09-14 00:01:04 -07:00
io.rs std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else} 2013-09-12 18:54:13 -07:00
iter.rs iter: add the edge case tests for range too 2013-09-15 00:54:32 -04:00
kinds.rs kinds: update documentation 2013-08-15 21:12:34 -04:00
libc.rs std: Add Win64 support 2013-08-26 22:15:45 +09:00
local_data.rs Improve the local_data docs slightly 2013-09-12 23:26:06 -07:00
logging.rs std::logging: Use a more specific enum than Either 2013-09-14 04:07:43 +02:00
macros.rs Define cfg(rtopt) when optimizing. Turn off runtime sanity checks 2013-08-23 21:19:59 -07:00
managed.rs std: implement Total{Ord,Eq} for pointers. 2013-08-04 19:46:52 +10:00
ops.rs std: add benchmark for allocating-and-dropping a struct with a dtor. 2013-07-22 16:56:11 -07:00
option.rs std: Restore Option::chain{,_mut}_ref as and_then{,_mut}_ref 2013-09-12 18:54:28 -07:00
os.rs rm some uses of the advance iterator method 2013-09-15 00:45:34 -04:00
owned.rs std: implement Total{Ord,Eq} for pointers. 2013-08-04 19:46:52 +10:00
path.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
prelude.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
ptr.rs implement raw pointer comparisons in librustc 2013-09-12 01:58:39 -04:00
rand.rs Use std::iter::range_step 2013-09-15 00:41:34 -04:00
reflect.rs repr: handle tuple structs sanely 2013-09-02 04:10:56 -04:00
reflect_stage0.rs Remove @io::Writer from sys/repr/reflect 2013-08-28 23:00:46 -07:00
repr.rs auto merge of #9065 : thestinger/rust/iter, r=alexcrichton 2013-09-09 00:26:07 -07:00
repr_stage0.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
result.rs std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else} 2013-09-12 18:54:13 -07:00
run.rs Rename str::from_bytes to str::from_utf8, closes #8985 2013-09-05 14:17:24 +02:00
select.rs auto merge of #9062 : blake2-ppc/rust/vec-iterator, r=alexcrichton 2013-09-09 21:31:03 -07:00
std.rs auto merge of #9005 : alexcrichton/rust/rusty-log, r=brson 2013-09-09 10:41:05 -07:00
str.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
sys.rs std::logging: Use a more specific enum than Either 2013-09-14 04:07:43 +02:00
to_bytes.rs std: fix a warning 2013-09-12 18:54:12 -07:00
to_str.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
trie.rs Use std::iter::range_step 2013-09-15 00:41:34 -04:00
tuple.rs std: Add a bunch of Default impls 2013-09-12 18:54:13 -07:00
unicode.rs rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
unit.rs std: Add a bunch of Default impls 2013-09-12 18:54:13 -07:00
util.rs librustc: Remove &const and *const from the language. 2013-08-27 18:46:51 -07:00
vec.rs std::vec: Fix hazards with uint overflows in unsafe code 2013-09-16 19:13:30 +02:00