diff options
| author | bors <bors@rust-lang.org> | 2021-12-19 00:24:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-19 00:24:56 +0000 |
| commit | df2f45c1d30615c930b7aa76bb9efbeea3909703 (patch) | |
| tree | dd3cda85ef00c342e688738f96d8a86d77b14052 /library/core/src | |
| parent | daf2204aa4954a9426cee93eb1baa2b26eb69070 (diff) | |
| parent | d486e68ab29a8c5ba2e776a0ff74a760fd3edf19 (diff) | |
| download | rust-df2f45c1d30615c930b7aa76bb9efbeea3909703.tar.gz rust-df2f45c1d30615c930b7aa76bb9efbeea3909703.zip | |
Auto merge of #92090 - matthiaskrgr:rollup-pbyqddi, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #91834 (Update browser-ui-test version and improve rustdoc-gui tests readability) - #91894 (Remove `in_band_lifetimes` from `rustc_incremental`) - #91932 (Add user seed to `-Z randomize-layout`) - #91956 (fix(rustc_lint): better detect when parens are necessary) - #92020 (Remove P: Unpin bound on impl Stream for Pin) - #92063 (docs: fix typo) - #92082 (rustdoc: Write doc-comments directly instead of using FromIterator) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/stream/stream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/stream/stream.rs b/library/core/src/stream/stream.rs index d102619b8e5..2cfddf9ad01 100644 --- a/library/core/src/stream/stream.rs +++ b/library/core/src/stream/stream.rs @@ -95,13 +95,13 @@ impl<S: ?Sized + Stream + Unpin> Stream for &mut S { #[unstable(feature = "async_stream", issue = "79024")] impl<P> Stream for Pin<P> where - P: DerefMut + Unpin, + P: DerefMut, P::Target: Stream, { type Item = <P::Target as Stream>::Item; fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { - self.get_mut().as_mut().poll_next(cx) + <P::Target as Stream>::poll_next(self.as_deref_mut(), cx) } fn size_hint(&self) -> (usize, Option<usize>) { |
