| Age | Commit message (Collapse) | Author | Lines |
|
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language
features!
|
|
|
|
Stabilize attributes on generic parameters
Closes https://github.com/rust-lang/rust/issues/48848
|
|
Fixes #42781
|
|
|
|
|
|
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.
|
|
Stabilize parent_id()
Fixes #46104
|
|
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.
|
|
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.
|
|
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)
|
|
Fix typo
In `libstd/io/buffered.rs` one example was marked as `no_ru` instead of `no_run`. I assume this is a typo.
|
|
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.
|
|
Fixes #46104
|
|
|
|
|
|
Swap the variable names in the example.
|
|
Closes #22181, #27779
|
|
|
|
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
|
|
|
|
|
|
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.
|
|
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.
|
|
Fixes #44971
|
|
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.
|
|
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.
|
|
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
|
|
Make UNIX_EPOCH an associated constant of SystemTime
It's not very discoverable as a separate const in the module.
r? @alexcrichton
|
|
Move the alloc::allocator module to core::heap
This is the `Alloc` trait and its dependencies.
|
|
Deprecate signed std::num::NonZeroI* with a call for use cases
CC https://github.com/rust-lang/rust/issues/49137#issuecomment-375823481
|
|
|
|
|
|
|
|
This reverts commit 09008cc23ff6395c2c928f3690e07d7389d08ebc.
|
|
|
|
It's not very discoverable as a separate const in the module.
|
|
Stabilize fs::read and fs::write
As discussed in https://github.com/rust-lang/rust/issues/46588#issuecomment-373956283
|
|
|
|
This is the `Alloc` trait and its dependencies.
|
|
|
|
|
|
These unstable items are deprecated:
* The `std::collections::range::RangeArgument` reexport
* The `std::collections::range` module.
|
|
The stable reexport `std::collections::Bound` is now deprecated.
Another deprecated reexport could be added in `alloc`,
but that crate is unstable.
|
|
Rollup of 12 pull requests
- Successful merges: #49243, #49329, #49364, #49400, #49405, #49427, #49428, #49429, #49439, #49442, #49444, #49452
- Failed merges:
|
|
|
|
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
|
|
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.
|
|
Implement `shrink_to` method on collections
Fixes #49385
|
|
|