From 613a7a79e7ce7f733e622040d45e392c159d13e3 Mon Sep 17 00:00:00 2001 From: Oneirical Date: Tue, 16 Jul 2024 13:13:52 -0400 Subject: [PATCH] rewrite and rename issue-33329 to ui test --- src/tools/tidy/src/allowed_run_make_makefiles.txt | 1 - tests/run-make/issue-33329/Makefile | 5 ----- tests/run-make/issue-33329/main.rs | 1 - tests/ui/errors/wrong-target-spec.rs | 3 +++ tests/ui/errors/wrong-target-spec.stderr | 2 ++ 5 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 tests/run-make/issue-33329/Makefile delete mode 100644 tests/run-make/issue-33329/main.rs create mode 100644 tests/ui/errors/wrong-target-spec.rs create mode 100644 tests/ui/errors/wrong-target-spec.stderr diff --git a/src/tools/tidy/src/allowed_run_make_makefiles.txt b/src/tools/tidy/src/allowed_run_make_makefiles.txt index cc959fa24a6..87760469b32 100644 --- a/src/tools/tidy/src/allowed_run_make_makefiles.txt +++ b/src/tools/tidy/src/allowed_run_make_makefiles.txt @@ -29,7 +29,6 @@ run-make/incr-foreign-head-span/Makefile run-make/interdependent-c-libraries/Makefile run-make/issue-107094/Makefile run-make/issue-15460/Makefile -run-make/issue-33329/Makefile run-make/issue-35164/Makefile run-make/issue-36710/Makefile run-make/issue-47551/Makefile diff --git a/tests/run-make/issue-33329/Makefile b/tests/run-make/issue-33329/Makefile deleted file mode 100644 index 9c149440d8e..00000000000 --- a/tests/run-make/issue-33329/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -include ../tools.mk - -all: - $(RUSTC) --target x86_64_unknown-linux-musl main.rs 2>&1 | $(CGREP) \ - "error: Error loading target specification: Could not find specification for target" diff --git a/tests/run-make/issue-33329/main.rs b/tests/run-make/issue-33329/main.rs deleted file mode 100644 index f328e4d9d04..00000000000 --- a/tests/run-make/issue-33329/main.rs +++ /dev/null @@ -1 +0,0 @@ -fn main() {} diff --git a/tests/ui/errors/wrong-target-spec.rs b/tests/ui/errors/wrong-target-spec.rs new file mode 100644 index 00000000000..d1d0fcc5fa0 --- /dev/null +++ b/tests/ui/errors/wrong-target-spec.rs @@ -0,0 +1,3 @@ +//@ compile-flags: --target x86_64_unknown-linux-musl + +fn main() {} diff --git a/tests/ui/errors/wrong-target-spec.stderr b/tests/ui/errors/wrong-target-spec.stderr new file mode 100644 index 00000000000..8b06f404078 --- /dev/null +++ b/tests/ui/errors/wrong-target-spec.stderr @@ -0,0 +1,2 @@ +error: Error loading target specification: Could not find specification for target "x86_64_unknown-linux-musl". Run `rustc --print target-list` for a list of built-in targets +