about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-29 16:49:42 +0530
committerGitHub <noreply@github.com>2022-08-29 16:49:42 +0530
commit9f7e20ba3542d79150e33d181512494d37462400 (patch)
tree84959dbf666f15fbdad203962eb8d36881d2f72b /compiler/rustc_interface/src/errors.rs
parent3ea5456366170f2b39bd77070c00c632537ec591 (diff)
parent2df5afe622d6e56f5e275dd35d525cc6029be890 (diff)
downloadrust-9f7e20ba3542d79150e33d181512494d37462400.tar.gz
rust-9f7e20ba3542d79150e33d181512494d37462400.zip
Rollup merge of #100337 - camelid:stabilize-io_read_to_string, r=JohnTitor
Stabilize `std::io::read_to_string`

Closes #80218. :tada:

This PR stabilizes the `std::io::read_to_string` function, with the following public API:

```rust
pub fn read_to_string<R: Read>(reader: R) -> Result<String>;
```

It's analogous to `std::fs::read_to_string` for files, but it works on anything that implements `io::Read`, including `io::stdin()`.

See the tracking issue (#80218) or documentation for details.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions