From 94e53f1af3b685183815ca7c88af440fd594ae54 Mon Sep 17 00:00:00 2001 From: cijiugechu Date: Fri, 24 Apr 2026 18:33:14 +0800 Subject: [PATCH] update compare modes --- src/tests/compiletest.md | 7 ++++--- src/tests/directives.md | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tests/compiletest.md b/src/tests/compiletest.md index 4c534e9ae..36dc71a3a 100644 --- a/src/tests/compiletest.md +++ b/src/tests/compiletest.md @@ -821,13 +821,14 @@ check for any problems that might arise. To run the tests in a different mode, you need to pass the `--compare-mode` CLI flag: ```bash -./x test tests/ui --compare-mode=chalk +./x test tests/ui --compare-mode=next-solver ``` The possible compare modes are: -- `polonius` — Runs with Polonius with `-Zpolonius`. -- `chalk` — Runs with Chalk with `-Zchalk`. +- `polonius` — Runs with Polonius with `-Zpolonius=next`. +- `next-solver` — Runs with the next trait solver with `-Znext-solver`. +- `next-solver-coherence` — Runs coherence with the next trait solver with `-Znext-solver=coherence`. - `split-dwarf` — Runs with unpacked split-DWARF with `-Csplit-debuginfo=unpacked`. - `split-dwarf-single` — Runs with packed split-DWARF with `-Csplit-debuginfo=packed`. diff --git a/src/tests/directives.md b/src/tests/directives.md index d536d324c..8bb9685d8 100644 --- a/src/tests/directives.md +++ b/src/tests/directives.md @@ -148,7 +148,8 @@ Some examples of `X` in `ignore-X` or `only-X`: - When particular debuggers are being tested: `cdb`, `gdb`, `lldb` - When particular debugger versions are matched: `ignore-gdb-version` - When the [parallel frontend] is enabled: `ignore-parallel-frontend` -- Specific [compare modes]: `compare-mode-polonius`, `compare-mode-chalk`, +- Specific [compare modes]: `compare-mode-polonius`, + `compare-mode-next-solver`, `compare-mode-next-solver-coherence`, `compare-mode-split-dwarf`, `compare-mode-split-dwarf-single` - The two different test modes used by coverage tests: `ignore-coverage-map`, `ignore-coverage-run`