Pietro Albini
66fcb3ceb2
Rollup merge of #55901 - euclio:speling, r=petrochenkov
...
fix various typos in doc comments
2018-11-15 11:04:42 +01:00
Andy Russell
4e35cbb22e
fix various typos in doc comments
2018-11-13 14:45:31 -05:00
kngwyu
1224e0197a
Format BtreeMap::range_mut example
2018-11-06 16:28:42 +09:00
Jorge Aparicio
f67b4e07d8
msp430: fix compilation of liballoc
2018-10-28 19:08:13 +01:00
Matthias Krüger
4972beaf65
fix typos in various places
2018-10-23 15:56:25 +02:00
Ralf Jung
e4434be6b7
remove a now outdated comment
2018-10-10 09:16:05 +02:00
Jorge Aparicio
6644e18e30
address RalfJung's comment
2018-10-09 08:58:01 +02:00
Jorge Aparicio
aeea992fa2
alloc: fix deprecated warnings
2018-10-09 08:58:01 +02:00
Alex Crichton
70ae43fee7
Revert "Slightly refactor VecDeque implementation"
...
This reverts commit 6ce76acae4 .
2018-10-05 09:15:57 -07:00
Alex Crichton
90b9469121
Revert "Optimize VecDeque::append"
...
This reverts commit 11e488b64f .
2018-10-05 09:15:52 -07:00
Alex Crichton
9a41cfabba
Revert "Add docs and debug asserts"
...
This reverts commit 1a1a7f6167 .
2018-10-05 09:15:48 -07:00
Alex Crichton
54441484d1
Revert "Fix tidy"
...
This reverts commit 1908892d3f .
2018-10-05 09:15:44 -07:00
Alex Crichton
8d81c03b65
Revert "Add another assert"
...
This reverts commit 21d2a6c986 .
2018-10-05 09:15:39 -07:00
Ralf Jung
e37d6d37e7
Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung"
...
This reverts commit c6e3d7fa31 , reversing
changes made to 4591a245c7 .
2018-09-29 09:50:50 +02:00
Jorge Aparicio
8fb0e80e40
address RalfJung's comment
2018-09-22 21:01:21 +02:00
Jorge Aparicio
7c37c6d33e
alloc: fix deprecated warnings
2018-09-22 21:01:21 +02:00
Mark Rousskov
9ec5ef541a
Breaking change upgrades
2018-09-04 13:22:08 -06:00
MaloJaffre
21d2a6c986
Add another assert
2018-08-29 13:42:48 +02:00
MaloJaffre
1908892d3f
Fix tidy
2018-08-28 15:59:21 +02:00
MaloJaffre
1a1a7f6167
Add docs and debug asserts
2018-08-28 15:38:56 +02:00
MaloJaffre
11e488b64f
Optimize VecDeque::append
2018-08-24 17:43:05 +02:00
MaloJaffre
6ce76acae4
Slightly refactor VecDeque implementation
2018-08-24 17:43:05 +02:00
MaloJaffre
f8d5ed47e5
Add a test for issue #53529
2018-08-22 13:15:50 +02:00
MaloJaffre
b85e4cc8fa
Fix unsoundness in VecDeque Debug impls
...
Fixes #53566 .
2018-08-22 13:15:50 +02:00
MaloJaffre
241b9b45c0
Revert "Auto merge of #52553 - Pazzaz:vecdeque-append, r=SimonSapin"
...
This partially reverts commit d5b6b95aef ,
reversing changes made to 6b1ff19af3 .
Fixes #53529 .
Cc: #53564 .
2018-08-22 10:27:42 +02:00
Corey Farwell
993fb93464
Replace usages of ptr::offset with ptr::{add,sub}.
2018-08-20 07:28:34 -04:00
bors
d5b6b95aef
Auto merge of #52553 - Pazzaz:vecdeque-append, r=SimonSapin
...
Non-naive implementation of `VecDeque.append`
Replaces the old, simple implementation with a more manual (and **unsafe** 😱 ) one. I've added 1 more test and verified that it covers all 6 code paths in the function.
This new implementation was about 60% faster than the old naive one when I tried benchmarking it.
2018-08-18 08:56:12 +00:00
Pazzaz
76625280b2
Clarify unused_as_mut_slices
2018-08-15 18:01:42 +02:00
Pazzaz
ae0f254311
Clarify dst condition
2018-08-14 20:56:22 +02:00
Pazzaz
8d3554c48d
Don't drop values in other, just move the tail
2018-08-14 20:54:25 +02:00
varkor
a00ba4d71e
Correct invalid feature attributes
2018-08-05 15:54:49 +01:00
Pazzaz
6ebd62b8ff
Make VecDeque append safer and easier to understand
2018-07-22 22:18:05 +02:00
Vadim Petrochenkov
2eb83ee527
data_structures: Add a reference wrapper for pointer-indexed maps/sets
...
Use `ptr::eq` for comparing pointers
2018-07-20 12:22:24 +03:00
Pazzaz
24bc854b8c
Non-naive implementation for VecDeque.append
2018-07-19 23:32:22 +02:00
Niko Matsakis
59f2edbf1a
add outlives annotations to BTreeMap
...
nll requires these annotations, I believe because of
https://github.com/rust-lang/rust/issues/29149
2018-07-02 11:49:33 -04:00
Nicholas Nethercote
f46f05bae8
Make BTreeMap::clone() not allocate when cloning an empty tree.
2018-07-02 13:03:31 +10:00
Simon Sapin
b0547cea0a
Move core::alloc::CollectionAllocErr to alloc::collections
2018-06-29 14:01:33 +02:00
Simon Sapin
121b57b87a
Move some alloc crate top-level items to a new alloc::collections module
...
This matches std::collections
2018-06-29 14:01:33 +02:00