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 5 pull requests #124710

Closed
wants to merge 76 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
b07c1f7
Improve several `Read` implementations
a1phyr Mar 13, 2024
23211b6
`VecDeque::read_to_string`: avoid making the slices contiguous
a1phyr Mar 14, 2024
2e3ee23
Avoid panicking branch in `append_to_string`
a1phyr Apr 10, 2024
2681edf
josh rustc-pull: check that no new root commits get created
RalfJung Apr 27, 2024
39f7a46
fix: usage of `deprecated` version of `Node.js`
hamirmahal Apr 27, 2024
f5ceb4e
Auto merge of #3519 - hamirmahal:fix/usage-of-deprecated-version-of-n…
bors Apr 27, 2024
45d9394
Auto merge of #3520 - RalfJung:josh-check, r=RalfJung
bors Apr 27, 2024
ee47a8e
Add doc comment to `pack_generic`
eduardosm Apr 27, 2024
b3b1b49
Clarify behavior of AVX2 gather when dest and offsets have different …
eduardosm Apr 27, 2024
b261535
Do not implement x86 SIMD abs with host integers
eduardosm Apr 27, 2024
5c6f95c
Auto merge of #3521 - eduardosm:avx2-2, r=RalfJung
bors Apr 28, 2024
b5482aa
file descriptors: make write take &mut self
RalfJung Apr 28, 2024
bc8ea93
Auto merge of #3524 - RalfJung:fd-write, r=RalfJung
bors Apr 28, 2024
622f697
Use the interpreted program's TZ variable in localtime_r
saethlin Apr 27, 2024
9bed19e
Refactor UnixEnvVars::get so that it can be reused by getenv
saethlin Apr 28, 2024
7afef08
don't leak UnixEnvVars impl details into get_env_var
RalfJung Apr 29, 2024
1c7e827
Auto merge of #3523 - saethlin:localtime_r-env, r=RalfJung
bors Apr 29, 2024
1cf951e
Don’t print `Preparing a sysroot` when `-q`/`--quiet` is passed
narpfel May 1, 2024
4b42626
fix usage example for `--print-sysroot`
narpfel May 1, 2024
a2b3211
no longer strip `Preparing a sysroot` message from test output
narpfel May 1, 2024
b0bdbcc
Auto merge of #3531 - narpfel:quiet-sysroot, r=RalfJung
bors May 1, 2024
aa986f0
Tree Borrows: first apply transition, then check protector with new '…
RalfJung May 2, 2024
ca3defe
Auto merge of #3532 - RalfJung:tb-protectors, r=RalfJung
bors May 2, 2024
36caaa9
update host-float comments
RalfJung May 2, 2024
f6c0090
Auto merge of #3535 - RalfJung:host-float, r=RalfJung
bors May 2, 2024
56bb517
Add assign
tiif May 2, 2024
aeef180
Preparing for merge from rustc
May 3, 2024
1d453a7
Merge from rustc
May 3, 2024
b348e41
update comments and URL
RalfJung May 3, 2024
3c6d194
Auto merge of #3536 - tiif:add_rustbot_feat, r=RalfJung
bors May 3, 2024
cde5f68
update lockfile
RalfJung May 3, 2024
45c1a6c
Auto merge of #3537 - rust-lang:rustup-2024-05-03, r=RalfJung
bors May 3, 2024
413bac5
run clippy on a Windows host
RalfJung May 3, 2024
c9b350a
Auto merge of #3542 - RalfJung:clippy-win, r=RalfJung
bors May 3, 2024
01bfef9
Preparing for merge from rustc
RalfJung May 3, 2024
84adaac
Auto merge of #3544 - RalfJung:rustup, r=RalfJung
bors May 3, 2024
803201a
./miri run: support -v flag to print what it is doing
RalfJung May 3, 2024
fa10e6f
Auto merge of #3545 - RalfJung:miri-run, r=RalfJung
bors May 3, 2024
4dd8e0b
CI: no need to surround if: condition in expansion braces
RalfJung May 3, 2024
3e0d531
Auto merge of #3547 - RalfJung:ci, r=RalfJung
bors May 3, 2024
39ddcc6
make many-seeds a mode of ./miri run rather than a separate command
RalfJung May 3, 2024
20fcbaa
remove a hack that is no longer needed
RalfJung May 4, 2024
1961b8b
Auto merge of #3548 - RalfJung:many-seeds, r=RalfJung
bors May 4, 2024
f1de4c1
Use `unchecked_sub` in `split_at`
scottmcm May 4, 2024
4082c24
tls dtors: treat all unixes uniformly
RalfJung May 4, 2024
7df633d
Auto merge of #3550 - RalfJung:unix-tls, r=RalfJung
bors May 4, 2024
45670bf
macos: use getentropy from libc
RalfJung May 4, 2024
37bd816
Auto merge of #3551 - RalfJung:getentropy, r=RalfJung
bors May 4, 2024
459c6ce
Make file descriptors into refcount references
Luv-Ray May 4, 2024
da6a18e
speed up Windows runner: don't run GC_STRESS test
RalfJung May 4, 2024
4ea88d5
show time taken in run_tests_minimal
RalfJung May 4, 2024
d90acac
Auto merge of #3533 - Luv-Ray:file-descriptors-to-refcount-references…
bors May 4, 2024
e944afd
move available-parallelism tests into shims/ folder
RalfJung May 4, 2024
6b82ec2
rename integer test
RalfJung May 4, 2024
5648735
move intrinsics implementations and tests into dedicated folder
RalfJung May 4, 2024
f43e3e2
Fix ignored tests for formatting
Urgau May 4, 2024
c484fd2
fix grouping of target-specific LLVM shims
RalfJung May 4, 2024
d7ad3da
move some minimal targets over to the macOS runner, to even out CI times
RalfJung May 4, 2024
90fb25a
Auto merge of #3556 - RalfJung:intrinsics, r=RalfJung
bors May 4, 2024
a551b4d
Auto merge of #3552 - RalfJung:ci, r=RalfJung
bors May 4, 2024
ab2168b
update 'unsupported' message
RalfJung May 4, 2024
4529e67
freebsd: test std threadname and fs APIs
RalfJung May 4, 2024
86bd0a8
document unofficially supported OSes
RalfJung May 4, 2024
99c5151
make some tests not need output (so they work on wasm)
RalfJung May 4, 2024
58efad4
Auto merge of #3558 - RalfJung:unsupported, r=RalfJung
bors May 4, 2024
5748d79
Auto merge of #3554 - RalfJung:freebsd, r=RalfJung
bors May 4, 2024
8bffd88
add helper function to declare an extern static for a weak symbol
RalfJung May 4, 2024
1572c0d
Various improvements to entrypoint code
Noratrieb May 1, 2024
99f77ac
make statx a regular function (so we don't need to support the syscall)
RalfJung May 4, 2024
8dc063c
Auto merge of #3559 - RalfJung:weak-extern-static, r=RalfJung
bors May 4, 2024
dc0cc72
update lockfile
RalfJung May 4, 2024
76dc302
Rollup merge of #122441 - a1phyr:improve_read_impls, r=ChrisDenton
matthiaskrgr May 4, 2024
6a6462a
Rollup merge of #124584 - Nilstrieb:entrypointy, r=fee1-dead
matthiaskrgr May 4, 2024
f226a67
Rollup merge of #124699 - scottmcm:split_at_unchecked_should_use_unch…
matthiaskrgr May 4, 2024
2ab5f46
Rollup merge of #124704 - Urgau:fix-ignored-tests-fmt, r=GuillaumeGomez
matthiaskrgr May 4, 2024
ee62903
Rollup merge of #124709 - RalfJung:miri-sync, r=RalfJung
matthiaskrgr May 4, 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
Prev Previous commit
Next Next commit
Avoid panicking branch in append_to_string
  • Loading branch information
a1phyr committed Apr 12, 2024
commit 2e3ee230220cc81b159d99d833cba46c667e3321
5 changes: 4 additions & 1 deletion library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
@@ -384,7 +384,10 @@ where
{
let mut g = Guard { len: buf.len(), buf: buf.as_mut_vec() };
let ret = f(g.buf);
if str::from_utf8(&g.buf[g.len..]).is_err() {

// SAFETY: the caller promises to only append data to `buf`
let appended = g.buf.get_unchecked(g.len..);
if str::from_utf8(appended).is_err() {
ret.and_then(|_| Err(Error::INVALID_UTF8))
} else {
g.len = g.buf.len();