about summary refs log tree commit diff
path: root/tests/coverage/branch/let-else.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-03 15:26:10 +0200
committerGitHub <noreply@github.com>2024-05-03 15:26:10 +0200
commitc27d3d5d2a8e65d91f32f5b30510655863238e2d (patch)
tree992ed04e1d5183207b59326b70c24c7612754b0d /tests/coverage/branch/let-else.rs
parent08d99928121f4a22b1e6e5aea8e84efc025f9484 (diff)
parent2c4214e0a00287be39c2b8d5331b4fa4f88b1390 (diff)
downloadrust-c27d3d5d2a8e65d91f32f5b30510655863238e2d.tar.gz
rust-c27d3d5d2a8e65d91f32f5b30510655863238e2d.zip
Rollup merge of #124612 - Urgau:run-make-stdin, r=jieyouxu
Add support for inputing via stdin with run-make-support

This PR adds the facility to set a input bytes that will be passed via the standard input.

This is useful for testing `rustc -` (and soon `rustdoc -`).

In #124611 took the approach of having a dedicated `run` method but it is not very convenient to use and would necessitate many functions, one for success, one for fail, ...

Instead this PR takes a different approach and allows setting the input bytes as if it were a parameter and when calling the (now custom) `output` function, we write the input bytes into stdin. I think this gives us maximum flexibility in the implementation and a simple interface for users.

To test this new logic I ported `tests/run-make/stdin-non-utf8/` to an `rmake.rs` one.

r? `@jieyouxu`
Diffstat (limited to 'tests/coverage/branch/let-else.rs')
0 files changed, 0 insertions, 0 deletions