diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-03-27 21:43:40 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-03-27 21:43:40 +0000 |
| commit | 1dcbc23c4bb1acb4dacf23f9e5e1b1f0c55829cf (patch) | |
| tree | 6fa30710ed3727657731085c826197aed9c7c348 /src/tools/compiletest | |
| parent | 0157da41ee9a1f6fb1a20e00ea62ab4122e2feaa (diff) | |
| download | rust-1dcbc23c4bb1acb4dacf23f9e5e1b1f0c55829cf.tar.gz rust-1dcbc23c4bb1acb4dacf23f9e5e1b1f0c55829cf.zip | |
Accept only-wasm32-wasip1 directives
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/header.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs index 99f1e33299d..351f97042d4 100644 --- a/src/tools/compiletest/src/header.rs +++ b/src/tools/compiletest/src/header.rs @@ -691,9 +691,9 @@ pub fn line_directive<'line>( } } -/// This is generated by collecting directives from ui tests and then extracting their directive -/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a -/// best-effort approximation for diagnostics. +/// This was originally generated by collecting directives from ui tests and then extracting their +/// directive names. This is **not** an exhaustive list of all possible directives. Instead, this is +/// a best-effort approximation for diagnostics. Add new headers to this list when needed. const KNOWN_DIRECTIVE_NAMES: &[&str] = &[ // tidy-alphabetical-start "assembly-output", @@ -872,6 +872,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[ "only-unix", "only-wasm32", "only-wasm32-bare", + "only-wasm32-wasip1", "only-windows", "only-x86", "only-x86_64", |
