From 5d7107b836fdea469fb1e8e469efb35782713f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= <39484203+jieyouxu@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:06:55 +0800 Subject: [PATCH] Rename `{ignore,only}-debug` -> `{ignore,needs}-{rustc,std}-debug-assertions` (#2101) --- src/tests/directives.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tests/directives.md b/src/tests/directives.md index 72ec72f1..44544055 100644 --- a/src/tests/directives.md +++ b/src/tests/directives.md @@ -140,7 +140,6 @@ Some examples of `X` in `ignore-X` or `only-X`: - Channel: `stable`, `beta` - When cross compiling: `cross-compile` - When [remote testing] is used: `remote` -- When debug-assertions are enabled: `debug` - When particular debuggers are being tested: `cdb`, `gdb`, `lldb` - When particular debugger versions are matched: `ignore-gdb-version` - Specific [compare modes]: `compare-mode-polonius`, `compare-mode-chalk`, @@ -172,6 +171,14 @@ settings: - `needs-symlink` — ignores if the target does not support symlinks. This can be the case on Windows if the developer did not enable privileged symlink permissions. +- `ignore-std-debug-assertions` — ignores if std was built with debug + assertions. +- `needs-std-debug-assertions` — ignores if std was not built with debug + assertions. +- `ignore-rustc-debug-assertions` — ignores if rustc was built with debug + assertions. +- `needs-rustc-debug-assertions` — ignores if rustc was not built with debug + assertions. The following directives will check LLVM support: