rust/library/alloc/src
bors 5c1304205b Auto merge of #84135 - rust-lang:GuillaumeGomez-patch-1, r=kennytm
Improve code example for length comparison

Small fix/improvement: it's much safer to check that you're under the length of an array rather than chacking that you're equal to it. It's even more true in case you update the length of the array while iterating.
2021-04-13 14:03:49 +00:00
..
alloc Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
collections Stabilize BTree{Map,Set}::retain 2021-04-12 00:01:31 -07:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw_vec Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
rc Re-stabilize Weak::as_ptr &friends for unsized T 2021-01-06 19:30:22 -05:00
sync Rollup merge of #80764 - CAD97:weak-unsized-as-ptr-again, r=RalfJung 2021-01-16 17:29:56 +00:00
vec Improve code example for length comparison 2021-04-12 19:59:52 +02:00
alloc.rs move WriteCloneIntoRaw into alloc::alloc 2021-01-12 12:24:28 -08:00
borrow.rs a few more diagnostic items 2021-02-16 02:32:21 +00:00
boxed.rs fix incorrect from_raw_in doctest 2021-04-10 12:24:19 +02:00
fmt.rs Auto merge of #78618 - workingjubilee:ieee754-fmt, r=m-ou-se 2021-03-27 10:40:16 +00:00
lib.rs Bump cfgs 2021-04-04 14:57:05 -04:00
macros.rs Only define rustc_diagnostic_item format_macro in not(test). 2021-02-14 20:03:13 +01:00
raw_vec.rs fmt, change to cold 2021-03-21 19:17:07 -04:00
rc.rs Rollup merge of #83476 - mystor:rc_mutate_strong_count, r=m-ou-se 2021-04-07 13:07:06 +02:00
slice.rs adjust documentation links for slice ascii case functions to use newer rustdoc link format 2021-03-27 14:15:42 -04:00
str.rs Auto merge of #81728 - Qwaz:fix-80335, r=joshtriplett 2021-03-28 06:32:34 +00:00
string.rs Rollup merge of #82554 - SkiFire13:fix-string-retain-unsoundness, r=m-ou-se 2021-03-22 02:20:27 +01:00
sync.rs panic early when TrustedLen indicates a length > usize::MAX 2021-03-31 23:09:28 +02:00
task.rs Update the bootstrap compiler 2021-02-20 17:19:30 -05:00
tests.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00