Skip to content

Commit

Permalink
Rollup merge of rust-lang#125607 - GuillaumeGomez:migrate-compile-std…
Browse files Browse the repository at this point in the history
…in, r=jieyouxu

Migrate `run-make/compile-stdin` to `rmake.rs`

Part of rust-lang#121876.

r? `@jieyouxu`
  • Loading branch information
GuillaumeGomez committed May 27, 2024
2 parents a9c125f + e4abfae commit 7083131
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ run-make/cdylib-fewer-symbols/Makefile
run-make/cdylib/Makefile
run-make/codegen-options-parsing/Makefile
run-make/comment-section/Makefile
run-make/compile-stdin/Makefile
run-make/compiler-lookup-paths-2/Makefile
run-make/compiler-lookup-paths/Makefile
run-make/compiler-rt-works-on-mingw/Makefile
Expand Down
9 changes: 0 additions & 9 deletions tests/run-make/compile-stdin/Makefile

This file was deleted.

13 changes: 13 additions & 0 deletions tests/run-make/compile-stdin/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// When provided standard input piped directly into rustc, this test checks that the compilation
// completes successfully and that the output can be executed.
//
// See <https://github.com/rust-lang/rust/pull/28805>.

//@ ignore-cross-compile

use run_make_support::{run, rustc};

fn main() {
rustc().arg("-").stdin("fn main() {}").run();
run("rust_out");
}

0 comments on commit 7083131

Please sign in to comment.