diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-15 11:28:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-15 11:28:24 +0100 |
| commit | d878ad0559ed1be0d0a0e3cdc2a62a9480e42cb8 (patch) | |
| tree | 708afb72e4210b26c05b2807662b03c2ced948f6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 1b241bb70365b06ccb6e0bc98fceb5cf76761d7b (diff) | |
| parent | aa0ce4a20ee54eba911f2225644db768f6cad7ec (diff) | |
| download | rust-d878ad0559ed1be0d0a0e3cdc2a62a9480e42cb8.tar.gz rust-d878ad0559ed1be0d0a0e3cdc2a62a9480e42cb8.zip | |
Rollup merge of #92863 - camelid:read_to_string-rm-mut, r=m-ou-se
Remove `&mut` from `io::read_to_string` signature ``@m-ou-se`` [realized][1] that because `Read` is implemented for `&mut impl Read`, there's no need to take `&mut` in `io::read_to_string`. Removing the `&mut` from the signature allows users to remove the `&mut` from their calls (and thus pass an owned reader) if they don't use the reader later. r? `@m-ou-se` [1]: https://github.com/rust-lang/rust/issues/80218#issuecomment-874322129
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
