about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-02-24 18:46:36 -0500
committerGitHub <noreply@github.com>2025-02-24 18:46:36 -0500
commit50940109ccdb6ce37079c6104e1cd2dd4b59d808 (patch)
treebaf1b3d355b4ed83e8b22f7eafa486e7161a99c9 /compiler/rustc_codegen_llvm/src
parent57ce16ca275eb263c0cf1b934ab61666e6e17230 (diff)
parent98b0f050cf61f86cd39babe1fa4b33808fdc0770 (diff)
downloadrust-50940109ccdb6ce37079c6104e1cd2dd4b59d808.tar.gz
rust-50940109ccdb6ce37079c6104e1cd2dd4b59d808.zip
Rollup merge of #137349 - thaliaarchi:io-optional-methods/zkvm, r=Noratrieb
Implement `read_buf` for zkVM stdin

For the zkVM, even when a guest buffer is uninitialized, from the host's perspective it is just a normal piece of memory which was initialized before letting the guest write into it. This makes `sys_read` safe to use with an uninitialized buffer. See https://github.com/risc0/risc0/issues/2853.

cc `@bobbobbio,` `@flaub`

r? `@Noratrieb`

Tracked in https://github.com/rust-lang/rust/issues/136756
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions