Sebastian Dröge
b08ca2958e
Stabilize slice::chunks_exact() and slice::chunks_exact_mut()
...
Fixes #47115
2018-10-18 18:51:56 +03:00
Sebastian Dröge
80a8e5c1f7
Add slice::rchunks(), rchunks_mut(), rchunks_exact() and rchunks_exact_mut()
...
These work exactly like the normal chunks iterators but start creating
chunks from the end of the slice.
See #55177 for the tracking issue
2018-10-18 10:38:05 +03:00
Jorge Aparicio
aeea992fa2
alloc: fix deprecated warnings
2018-10-09 08:58:01 +02:00
Oliver Schneider
ec74d3533a
Stabilize min_const_fn
2018-10-05 10:36:14 +02:00
bors
6310be458f
Auto merge of #54601 - cuviper:prep-1.31, r=Mark-Simulacrum
...
Bump to 1.31.0 and bootstrap from 1.30 beta
Closes #54594 .
2018-09-30 01:45:50 +00: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
Josh Stone
ce034951fb
Bump to 1.31.0 and bootstrap from 1.30 beta
2018-09-27 20:52:53 -07:00
Pietro Albini
6a0f45b3f4
Rollup merge of #54537 - sdroege:chunks-exact, r=alexcrichton
...
Rename slice::exact_chunks() to slice::chunks_exact()
See https://github.com/rust-lang/rust/issues/47115#issuecomment-403090815
and https://github.com/rust-lang/rust/issues/47115#issuecomment-424053547
2018-09-25 22:34:47 +02:00
Sebastian Dröge
e09e45041b
Rename slice::exact_chunks() to slice::chunks_exact()
...
See https://github.com/rust-lang/rust/issues/47115#issuecomment-403090815
and https://github.com/rust-lang/rust/issues/47115#issuecomment-424053547
2018-09-24 22:43:06 +03:00
Clément Renault
d560292a87
Make the Vec::dedup method use slice::partition_dedup internally
2018-09-23 09:10:18 +02:00
Jorge Aparicio
7c37c6d33e
alloc: fix deprecated warnings
2018-09-22 21:01:21 +02:00
bors
1e21c9a297
Auto merge of #53877 - withoutboats:compositional-pin, r=aturon
...
Update to a new pinning API.
~~Blocked on #53843 because of method resolution problems with new pin type.~~
@r? @cramertj
cc @RalfJung @pythonesque anyone interested in #49150
2018-09-19 06:56:19 +00:00
toidiu
731f4efae5
stabalize infer outlives requirements (RFC 2093).
...
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Without Boats
974bdc80fe
Update to a new pinning API.
2018-09-01 06:57:58 +02:00
Oliver Schneider
d125e904b5
Restrict most uses of const_fn to min_const_fn
2018-08-31 08:40:00 +02:00
bors
8c2b371ebc
Auto merge of #53227 - nivkner:pin_move, r=RalfJung
...
move the Pin API into its own module for centralized documentation
This implements the change proposed by @withoutboats in #49150 , as suggested by @RalfJung in the review of #53104 ,
along with the documentation that was originally in it, that was deemed more appropriate in module-level documentation.
r? @RalfJung
2018-08-27 22:56:15 +00:00
Niko Matsakis
73fb1622b3
check that adding infer-outlives requirement to all crates works
2018-08-24 17:10:50 -04:00
Niv Kaminer
971d7ed249
move PinBox into pin module and export through std
2018-08-23 01:37:03 +03:00
memoryruins
ce7f0c483d
liballoc: enable feature(nll) for bootstrap
2018-08-09 01:50:49 -04:00
varkor
319b052357
Fix stage 2 tests
2018-08-05 15:54:49 +01:00
varkor
64185f205d
Remove unnecessary or invalid feature attributes
2018-08-05 15:54:48 +01:00
Mark Rousskov
683a3db01f
Switch to bootstrapping from 1.29 beta
2018-08-01 11:59:08 -06:00
Tatsuyuki Ishi
e098985939
Deny bare_trait_objects globally
2018-07-25 10:25:29 +09:00
ljedrz
217f8fbd45
Revert borked changes in last commit.
2018-07-11 10:19:54 +02:00
ljedrz
cd44b3ddad
Add missing dyn in liballoc
2018-07-10 22:32:19 +02:00
ljedrz
296e72f11c
Deny bare trait objects in in src/liballoc
2018-07-10 20:45:16 +02:00
Simon Sapin
b842177cfa
Add the alloc::prelude module
...
It contains the re-exports that are in `std::prelude::v1`
but not in `core::prelude::v1`.
Calling it prelude is somewhat of a misnomer since (unlike those modules
in `std` or `core`) its contents are never implicitly imported in modules.
Rather it is intended to be used with an explicit glob import like
`use alloc::prelude::*;`.
However there is precedent for the same misnomer with `std::io::prelude`,
for example.
This new module is unstable with the same feature name as the `alloc` care.
They are proposed for stabilization together in RFC
https://github.com/rust-lang/rfcs/pull/2480
2018-07-07 23:08:43 +02:00
Jorge Aparicio
0ed32313a2
#[cfg(target_has_atomic_cas)] -> #[cfg(target_has_atomic = "cas")]
2018-07-05 16:52:46 -05:00
Jorge Aparicio
bbf688a84d
enable Atomic*.{load,store} for ARMv6-M / MSP430
...
closes #45085
this commit adds an `atomic_cas` target option and an unstable `#[cfg(target_has_atomic_cas)]`
attribute to enable a subset of the `Atomic*` API on architectures that don't support atomic CAS
natively, like MSP430 and ARMv6-M.
2018-07-05 16:44:29 -05:00
bors
48af7714d8
Auto merge of #51717 - Mark-Simulacrum:snap, r=alexcrichton
...
Bootstrap from 1.28.0 beta
2018-06-30 21:01:05 +00:00
Mark Simulacrum
ad97f8b491
Bootstrap from 1.28.0-beta.3
2018-06-30 13:17:49 -07:00
Simon Sapin
15bb6c431d
liballoc docs: Remove “not intended for general usage”
2018-06-29 14:01:33 +02:00
Simon Sapin
c7638edf52
Rename alloc::arc to alloc::sync, to match std::sync
2018-06-29 14:01:33 +02:00
Simon Sapin
3394fb7bb7
Remove the Vec and String reexports at the root of the alloc crate
...
… since `std` has no corresponding reexports.
Use `alloc::vec::Vec` and `alloc::string::String` instead.
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
Simon Sapin
26324d0abe
Remove the unstable alloc::allocator module reexport, deprecated since 1.27
2018-06-29 14:01:33 +02:00
Clar Charr
b5cee029a5
Add str::split_ascii_whitespace.
2018-06-27 17:54:27 -04:00
Simon Sapin
e2aef92c19
Stabilize #[repr(transparent)]
...
Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318
Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-12 06:49:07 +02:00
bors
4367e41ea2
Auto merge of #51241 - glandium:globalalloc, r=sfackler,SimonSapin
...
Stabilize GlobalAlloc and #[global_allocator]
This PR implements the changes discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-393263510
Fixes #49668
Fixes #27389
This does not change the default global allocator: #36963
2018-06-12 00:36:21 +00:00
Simon Sapin
8c30c51686
Remove deprecated heap modules
...
The heap.rs file was already unused.
2018-06-11 13:47:27 -07:00
tinaun
6e5c18e8dc
add a few blanket future impls to std
2018-06-08 17:56:59 -04:00
bors
19d0b539aa
Auto merge of #51263 - cramertj:futures-in-core, r=aturon
...
Add Future and task system to the standard library
This adds preliminary versions of the `std::future` and `std::task` modules in order to unblock development of async/await (https://github.com/rust-lang/rust/issues/50547 ). These shouldn't be considered as final forms of these libraries-- design questions about the libraries should be left on https://github.com/rust-lang/rfcs/pull/2418 . Once that RFC (or a successor) is merged, these APIs will be adjusted as necessary.
r? @aturon
2018-06-06 19:42:19 +00:00
Taylor Cramer
a6055c8859
Add Future and task system to the standard library
2018-06-06 10:41:52 -07:00
Thayne McCombs
9d770e9959
Stabilize SliceIndex trait.
...
Fixes #35729
According to recommendations in
https://github.com/rust-lang/rust/issues/35729#issuecomment-377784884
2018-06-01 00:04:26 -06:00
Mark Simulacrum
9e3432447a
Switch to 1.26 bootstrap compiler
2018-05-17 08:47:25 -06:00
Simon Sapin
89d9ca9b50
Stabilize num::NonZeroU*
...
Tracking issue: https://github.com/rust-lang/rust/issues/49137
2018-05-16 19:11:31 +02:00
F001
160063aad2
make String::new() const
2018-05-05 16:38:27 +08:00
bors
a4a7947259
Auto merge of #49724 - kennytm:range-inc-start-end-methods, r=Kimundi
...
Introduce RangeInclusive::{new, start, end} methods and make the fields private.
cc #49022
2018-05-01 10:10:46 +00:00
bors
357bf00f1c
Auto merge of #48925 - zackmdavis:fn_must_stabilize, r=nikomatsakis
...
stabilize `#[must_use]` for functions and must-use comparison operators (RFC 1940)
r? @nikomatsakis
2018-04-30 22:02:33 +00:00
kennytm
b88c152784
Rollup merge of #50233 - mark-i-m:const_vec, r=kennytm
...
Make `Vec::new` a `const fn`
`RawVec::empty/_in` are a hack. They're there because `if size_of::<T> == 0 { !0 } else { 0 }` is not allowed in `const` yet. However, because `RawVec` is unstable, the `empty/empty_in` constructors can be removed when #49146 is done...
2018-05-01 01:18:36 +08:00