about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2018-04-05Bump the bootstrap compiler to 1.26.0 betaAlex Crichton-8/+2
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-05typosmemoryleak47-3/+3
2018-04-05Auto merge of #48851 - petrochenkov:genparattr, r=nikomatsakisbors-1/+1
Stabilize attributes on generic parameters Closes https://github.com/rust-lang/rust/issues/48848
2018-04-05Stabilize take_set_limitThayne McCombs-2/+1
Fixes #42781
2018-04-05Stabilize attributes on generic parametersVadim Petrochenkov-1/+1
2018-04-04Replace manual iter exhaust with for_each(drop).Clar Charr-1/+1
2018-04-05Rollup merge of #49594 - mbrubeck:docs, r=steveklabnikkennytm-2/+28
Add some performance guidance to std::fs and std::io docs Adds more documentation about performance to various "read" functions in `fs` and `io`, and to `BufReader`/`BufWriter`, with the goal of helping developers choose the best option for a given task.
2018-04-05Rollup merge of #49637 - tmccombs:parent-id-stabilize, r=sfacklerkennytm-1/+1
Stabilize parent_id() Fixes #46104
2018-04-04Use box syntax instead of Box::new in Mutex::remutex on WindowsMike Hommey-1/+1
The Box::new(mem::uninitialized()) pattern actually actively copies uninitialized bytes from the stack into the box, which is a waste of time. Using the box syntax instead avoids the useless copy.
2018-04-04Rollup merge of #49619 - durka:patch-46, r=steveklabnikkennytm-2/+2
tweak core::fmt docs Remove an outdated (pre-1.0!) claim about passing something or other to a function. Also swap the variable names in the example.
2018-04-04Rollup merge of #49612 - tmccombs:stabilize-getpid, r=kennytmkennytm-1/+1
Fix "since" version for getpid feature. It was stabilized right before the beta branch was cut for 1.26.0. See https://github.com/rust-lang/rust/pull/49523#issuecomment-377996315 This will need to be backported to beta (1.26.0)
2018-04-04Rollup merge of #49599 - rolfvandekrol:feature/no_ru, r=frewsxcvkennytm-1/+1
Fix typo In `libstd/io/buffered.rs` one example was marked as `no_ru` instead of `no_run`. I assume this is a typo.
2018-04-04Auto merge of #48575 - ishitatsuyuki:unix-no-thread, r=alexcrichtonbors-10/+61
rustc_driver: get rid of the extra thread **Do not rollup** We can alter the stack size afterwards on Unix. Having a separate thread causes poor debugging experience when interrupting with signals. I have to get the backtrace of the all thread, as the main thread is waiting to join doing nothing else. This patch allows me to just run `bt` to get the desired backtrace.
2018-04-03Stabilize parent_id()Thayne McCombs-1/+1
Fixes #46104
2018-04-03Add performance notes to BufReader/BufWriter docsMatt Brubeck-0/+12
2018-04-03Cross-reference fs::read functions from io::Read docsMatt Brubeck-0/+10
2018-04-03tweak format_args! docsAlex Burka-2/+2
Swap the variable names in the example.
2018-04-03Remove all unstable placement featuresAidan Hobson Sayers-177/+1
Closes #22181, #27779
2018-04-03Fix importsTatsuyuki Ishi-1/+1
2018-04-02Fix "since" version for getpid feature.Thayne McCombs-1/+1
It was stabilized right before the beta branch was cut for 1.26.0. See https://github.com/rust-lang/rust/pull/49523#issuecomment-377996315
2018-04-02Fix typoRolf van de Krol-1/+1
2018-04-02Add performance note to fs::read docsMatt Brubeck-2/+6
2018-04-02Auto merge of #49580 - glandium:core-heap, r=SimonSapinbors-2/+4
Use Alloc and Layout from core::heap. 94d1970bba87f2d2893f6e934e4c3f02ed50604d moved the alloc::allocator module to core::heap, moving e.g. Alloc and Layout out of the alloc crate. While alloc::heap reexports them, it's better to use them from where they really come from.
2018-04-02Use Alloc and Layout from core::heap.Mike Hommey-2/+4
94d1970bba87f2d2893f6e934e4c3f02ed50604d moved the alloc::allocator module to core::heap, moving e.g. Alloc and Layout out of the alloc crate. While alloc::heap reexports them, it's better to use them from where they really come from.
2018-04-01Stabilize `std::process::id()`Thayne McCombs-2/+1
Fixes #44971
2018-04-01Auto merge of #49418 - frewsxcv:frewsxcv-network-order, r=TimNNbors-2/+80
Clarify network byte order conversions for integer / IP address conversions. Opened primarily to address https://github.com/rust-lang/rust/issues/48819. Also added a few other conversion docs/examples.
2018-04-01Auto merge of #49522 - mbrubeck:fs_read, r=SimonSapinbors-5/+5
Rename fs::read_string to read_to_string and stabilize As approved in https://github.com/rust-lang/rust/issues/46588#issuecomment-377530365 Closes #46588.
2018-03-31Auto merge of #49521 - mbrubeck:fs_read_write_bytes, r=TimNNbors-2/+2
fs_read_write_bytes stabilized in 1.26.0 Fix the stabilization attributes from #49422 because it merged before 1.26 branched to beta. r? @TimNN
2018-03-31Auto merge of #49501 - sfackler:unix-epoch-assoc-const, r=alexcrichtonbors-0/+23
Make UNIX_EPOCH an associated constant of SystemTime It's not very discoverable as a separate const in the module. r? @alexcrichton
2018-03-31Auto merge of #49481 - SimonSapin:core-heap, r=alexcrichtonbors-1/+2
Move the alloc::allocator module to core::heap This is the `Alloc` trait and its dependencies.
2018-03-30Auto merge of #49324 - SimonSapin:unsigned, r=alexcrichtonbors-0/+1
Deprecate signed std::num::NonZeroI* with a call for use cases CC https://github.com/rust-lang/rust/issues/49137#issuecomment-375823481
2018-03-30Rename fs::read_string to read_to_string and stabilizeMatt Brubeck-5/+5
2018-03-30fs_read_write_bytes stabilized in 1.26.0Matt Brubeck-2/+2
2018-03-30Deprecate signed std::num::NonZeroI* with a call for use casesSimon Sapin-0/+1
2018-03-30Revert "Add TryFrom and TryInto to the prelude"Simon Sapin-2/+0
This reverts commit 09008cc23ff6395c2c928f3690e07d7389d08ebc.
2018-03-30Fix doctestSteven Fackler-0/+1
2018-03-30Make UNIX_EPOCH an associated constant of SystemTimeSteven Fackler-0/+22
It's not very discoverable as a separate const in the module.
2018-03-30Auto merge of #49422 - mbrubeck:fs_read, r=TimNNbors-6/+2
Stabilize fs::read and fs::write As discussed in https://github.com/rust-lang/rust/issues/46588#issuecomment-373956283
2018-03-29fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+6
2018-03-29Move the alloc::allocator module to core::heapSimon Sapin-1/+2
This is the `Alloc` trait and its dependencies.
2018-03-29Hide the Bound type in docs at its deprecated location in std::collectionsSimon Sapin-0/+1
2018-03-29Hide the deprecated std::collections::range module from docsSimon Sapin-0/+1
2018-03-29Move RangeArguments to {core::std}::ops and rename to RangeBoundsSimon Sapin-2/+6
These unstable items are deprecated: * The `std::collections::range::RangeArgument` reexport * The `std::collections::range` module.
2018-03-29Move alloc::Bound to {core,std}::opsSimon Sapin-1/+2
The stable reexport `std::collections::Bound` is now deprecated. Another deprecated reexport could be added in `alloc`, but that crate is unstable.
2018-03-28Auto merge of #49460 - kennytm:rollup, r=kennytmbors-0/+124
Rollup of 12 pull requests - Successful merges: #49243, #49329, #49364, #49400, #49405, #49427, #49428, #49429, #49439, #49442, #49444, #49452 - Failed merges:
2018-03-28fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+4
2018-03-28Auto merge of #49357 - frewsxcv:frewsxcv-termination-doc-examples, ↵bors-1127/+1130
r=GuillaumeGomez Remove hidden `foo` functions from doc examples; use `Termination` trait. Fixes https://github.com/rust-lang/rust/issues/49233. Easier to review with the white-space ignoring `?w=1` feature: https://github.com/rust-lang/rust/pull/49357/files?w=1
2018-03-28std: Child::kill() returns error if process has already exitedAndreas Tolfsen-2/+3
This patch makes it clear in std::process::Child::kill()'s API documentation that an error is returned if the child process has already cleanly exited. This is implied by the example, but not called out explicitly.
2018-03-28Rollup merge of #49400 - Diggsey:shrink-to, r=joshtriplettkennytm-0/+124
Implement `shrink_to` method on collections Fixes #49385
2018-03-28Stabilize fs::read and fs::writeMatt Brubeck-6/+2