about summary refs log tree commit diff
path: root/library/std/src/error.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-06-16 12:53:21 -0700
committerGitHub <noreply@github.com>2023-06-16 12:53:21 -0700
commitc55af41e7a8388a022049f21a93b68626b36bc90 (patch)
tree37bdf49a94a40fb6487c2c6a335fddbf06227b4a /library/std/src/error.rs
parent6a94e87a54ecf2df307c65af2dbc2effb3a525b8 (diff)
parent29302a204c1f5a1ac1c114cbdb17c32a24da8367 (diff)
downloadrust-c55af41e7a8388a022049f21a93b68626b36bc90.tar.gz
rust-c55af41e7a8388a022049f21a93b68626b36bc90.zip
Rollup merge of #111074 - WaffleLapkin:🌟unsizes_your_buf_reader🌟, r=Amanieu
Relax implicit `T: Sized` bounds on `BufReader<T>`, `BufWriter<T>` and `LineWriter<T>`

TL;DR:
```diff,rust
-pub struct BufReader<R> { /* ... */ }
+pub struct BufReader<R: ?Sized> { /* ... */ }

-pub struct BufWriter<W: Write> { /* ... */ }
+pub struct BufWriter<W: ?Sized + Write> { /* ... */ }

-pub struct LineWriter<W: Write> { /* ... */ }
+pub struct LineWriter<W: ?Sized + Write> { /* ... */ }
```

This allows using `&mut BufReader<dyn Read>`, for example.

**This is an insta-stable change**.
Diffstat (limited to 'library/std/src/error.rs')
0 files changed, 0 insertions, 0 deletions