rust/library/alloc/src
Yuki Okushi 1b8fd02daa
Rollup merge of #80834 - bugadani:vecdeque, r=oli-obk
Remove unreachable panics from VecDeque::{front/back}[_mut]

`VecDeque`'s `front`, `front_mut`, `back` and `back_mut` methods are implemented in terms of the index operator, which causes these functions to contain [unreachable panic calls](https://rust.godbolt.org/z/MTnq1o).

This PR reimplements these methods in terms of `get[_mut]` instead.
2021-01-15 18:26:11 +09:00
..
alloc Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
collections Rollup merge of #80834 - bugadani:vecdeque, r=oli-obk 2021-01-15 18:26:11 +09: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 de-stabilize unsized raw ptr methods for Weak 2020-12-28 00:39:09 +01:00
sync deprecate atomic::spin_loop_hint in favour of hint::spin_loop 2021-01-13 16:30:29 +10:00
vec Rollup merge of #80972 - KodrAus:deprecate/remove_item, r=nagisa 2021-01-14 18:00:18 +00:00
alloc.rs move WriteCloneIntoRaw into alloc::alloc 2021-01-12 12:24:28 -08:00
borrow.rs Mention Arc::make_mut and Rc::make_mut in the documentation of Cow 2020-12-28 17:13:28 +01:00
boxed.rs move WriteCloneIntoRaw into alloc::alloc 2021-01-12 12:24:28 -08:00
fmt.rs Convert a bunch of intra-doc links 2020-11-07 12:50:57 -08:00
lib.rs remove incomplete features from std 2021-01-01 19:57:10 +01:00
macros.rs doc: apply suggestions 2020-12-11 10:09:40 -05:00
raw_vec.rs Auto merge of #78682 - glandium:issue78471, r=lcnr 2020-12-15 06:32:10 +00:00
rc.rs move WriteCloneIntoRaw into alloc::alloc 2021-01-12 12:24:28 -08:00
slice.rs Replace the tracking issue for the slice_group_by feature 2020-12-31 12:13:03 +01:00
str.rs Remove many unnecessary manual link resolves from library 2020-12-31 11:54:32 -08:00
string.rs Add "length" as doc alias to len methods 2020-12-28 09:13:46 +01:00
sync.rs move WriteCloneIntoRaw into alloc::alloc 2021-01-12 12:24:28 -08:00
task.rs Allow unstable From impl for [Raw]Waker. 2020-09-11 13:36:45 +02:00
tests.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00