From 65eb51c6632374ad55940add9f7eb0ef2998d601 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Mon, 11 Mar 2024 19:26:44 +0100 Subject: [PATCH] compiletest: Allow `only-unix` lines in ui test headers This is a valid variant, which can be confirmed by adding an invalid variant such as `only-foobar`. In that case there will be an error later in the parsing. --- src/tools/compiletest/src/header.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs index c76cba824a373..759486a09502e 100644 --- a/src/tools/compiletest/src/header.rs +++ b/src/tools/compiletest/src/header.rs @@ -810,6 +810,7 @@ const DIAGNOSTICS_DIRECTIVE_NAMES: &[&str] = &[ "only-sparc", "only-sparc64", "only-thumb", + "only-unix", "only-wasm32", "only-wasm32-bare", "only-windows",