Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #120461

Closed
wants to merge 28 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift click to select a range
a208662
References refer to allocated objects
joshlf Oct 12, 2023
4f0192a
Update primitive_docs.rs
joshlf Oct 13, 2023
39660c4
Update library/core/src/primitive_docs.rs
joshlf Oct 13, 2023
55487e2
Update primitive_docs.rs
joshlf Oct 13, 2023
1a0309a
Update primitive_docs.rs
joshlf Nov 3, 2023
ab938b9
Improve documentation for [A]Rc::into_inner
steffahn Jan 23, 2024
c2c6e33
Update primitive_docs.rs
joshlf Jan 25, 2024
bdf7404
Update codegen test for LLVM 18
nikic Jan 26, 2024
cda898b
Remove unnecessary unit returns in query declarations
DaniPopes Jan 27, 2024
b867c7c
Update primitive_docs.rs
joshlf Jan 27, 2024
2251e9a
Reject infinitely-sized reads from io::Repeat
kornelski Jan 15, 2024
5d8c178
Make the coroutine def id of an async closure the child of the closur…
compiler-errors Jan 27, 2024
5f8030d
hir: Remove unnecessary `HirId` from `hir::Let`
petrochenkov Jan 27, 2024
b2b5b91
hir: Use `InferArg` in `ArrayLen::Infer`
petrochenkov Jan 27, 2024
9199742
Revert "Add the wasm32-wasi-preview2 target"
fmease Jan 28, 2024
06ea8cc
raw pointer metadata API: data address -> data pointer
RalfJung Jan 27, 2024
4a11936
Update pulldown-cmark version to 0.9.5
GuillaumeGomez Jan 28, 2024
dad6802
Add regression test for #100638
GuillaumeGomez Jan 28, 2024
f26132b
Rollup merge of #116677 - joshlf:patch-11, r=RalfJung
fmease Jan 29, 2024
399620f
Rollup merge of #119991 - kornelski:endless-read, r=the8472
fmease Jan 29, 2024
94f9406
Rollup merge of #120266 - steffahn:a_rc_into_inner_docs, r=Mark-Simul…
fmease Jan 29, 2024
04c3f9c
Rollup merge of #120376 - nikic:update-codegen-test, r=cuviper
fmease Jan 29, 2024
b8e7239
Rollup merge of #120402 - compiler-errors:async-closure-def-tree, r=c…
fmease Jan 29, 2024
a952e08
Rollup merge of #120424 - RalfJung:raw-ptr-meta, r=Nilstrieb
fmease Jan 29, 2024
473e175
Rollup merge of #120425 - DaniPopes:query-default-return, r=Nilstrieb
fmease Jan 29, 2024
e7824d5
Rollup merge of #120428 - petrochenkov:somehir2, r=compiler-errors
fmease Jan 29, 2024
8b22789
Rollup merge of #120434 - fmease:revert-speeder, r=petrochenkov
fmease Jan 29, 2024
83b3958
Rollup merge of #120443 - GuillaumeGomez:footnote-def-improvement, r=…
fmease Jan 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions library/std/src/io/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 204,16 @@ impl Read for Repeat {
Ok(())
}

/// This function is not supported by `io::Repeat`, because there's no end of its data
fn read_to_end(&mut self, _: &mut Vec<u8>) -> io::Result<usize> {
Err(io::Error::from(io::ErrorKind::OutOfMemory))
}

/// This function is not supported by `io::Repeat`, because there's no end of its data
fn read_to_string(&mut self, _: &mut String) -> io::Result<usize> {
Err(io::Error::from(io::ErrorKind::OutOfMemory))
}

#[inline]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
let mut nwritten = 0;
Expand Down