Corey Farwell
7b4cbbd12d
Document that Index ops can panic on HashMap & BTreeMap.
...
Fixes https://github.com/rust-lang/rust/issues/47011 .
2018-01-28 21:51:33 -05:00
Andrew Straw
4d08d054c7
fix doctests for BTreeSet to use BTreeSet (not BTreeMap)
...
This fixes #47624
2018-01-20 23:39:12 +01:00
Stjepan Glavina
7948f458ab
Write examples for {BTree,Hash}Set::{get,replace,take}
2018-01-05 15:02:10 +01:00
Stjepan Glavina
6076cf6f4e
Remove T: Ord bound from BTreeSet::{is_empty, len}
2018-01-03 20:00:11 +01:00
Matt Brubeck
3024c1434a
Use Try syntax for Option in place of macros or match
2017-12-09 14:18:33 -08:00
mchlrhw
9e36111fc6
Implement entry_and_modify
2017-10-06 09:10:31 +01:00
Corey Farwell
2d292cff5d
Remove unneeded loop.
2017-09-13 22:44:14 -04:00
Jon Gjengset
00bdae02fd
Avoid weird or_insert_with example
2017-09-05 13:37:36 -04:00
Jon Gjengset
35c7943fd2
Add or_default to Entry APIs
2017-09-05 13:11:38 -04:00
Corey Farwell
a4387d54dc
Rollup merge of #43891 - Fourchaux:master, r=steveklabnik
...
Fix typos & us spellings
Fixing some typos and non en-US spellings.
(Update of PR https://github.com/rust-lang/rust/pull/42812 )
2017-08-17 10:44:07 -04:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999 ), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
Fourchaux
c7104be1a3
Fix typos & us spellings
2017-08-15 21:56:30 +02:00
bors
bffc973da8
Auto merge of #43794 - Eijebong:fix_typos, r=lukaramu,steveklanik,imperio
...
Fix some typos
I wrote a really naive script and found those typos in the documentation.
2017-08-12 05:52:19 +00:00
Bastien Orivel
47cb3c5bc2
Fix some typos
2017-08-11 00:16:18 +02:00
Isaac van Bakel
400075d9d9
Fixed all unnecessary muts in language core
2017-08-01 23:01:24 +01:00
Simon Sapin
938552a228
Use checked NonZero constructor instead of explicit null check in btree
2017-07-22 20:38:40 +02:00
Simon Sapin
a4edae95ad
Add conversions from references to NonZero pointers, Unique, and Shared
2017-07-22 20:38:40 +02:00
Simon Sapin
cbd2b6b484
Add Box::into_unique
2017-07-22 20:38:40 +02:00
Simon Sapin
0a08ad0443
Rename {NonZero,Shared,Unique}::new to new_unchecked
2017-07-22 20:38:16 +02:00
Alex Crichton
695dee063b
rustc: Implement the #[global_allocator] attribute
...
This PR is an implementation of [RFC 1974] which specifies a new method of
defining a global allocator for a program. This obsoletes the old
`#![allocator]` attribute and also removes support for it.
[RFC 1974]: https://github.com/rust-lang/rfcs/pull/197
The new `#[global_allocator]` attribute solves many issues encountered with the
`#![allocator]` attribute such as composition and restrictions on the crate
graph itself. The compiler now has much more control over the ABI of the
allocator and how it's implemented, allowing much more freedom in terms of how
this feature is implemented.
cc #27389
2017-07-05 14:37:01 -07:00
Steven Fackler
0a9c13624d
Revert "Stabilize RangeArgument"
...
This reverts commit 143206d54d .
2017-06-30 08:34:53 -10:00
Steven Fackler
143206d54d
Stabilize RangeArgument
...
Move it and Bound to core::ops while we're at it.
Closes #30877
2017-06-24 19:20:57 -07:00
Federico Ravasio
545bfcd864
Relax Debug constraints when debugging {HashMap,BTreeMap}::{Keys,Values}.
...
Fixed #41924 .
2017-06-23 12:48:29 +02:00
Federico Ravasio
2ea1d2d007
Correctly iterate on keys/values when debugging BTreeMap::{Keys,Values}.
2017-06-23 12:47:43 +02:00
Murarth
eadda7665e
Merge crate collections into alloc
2017-06-13 23:37:34 -07:00