Skip to content

Commit dab4531

Browse files
authored
clarify run-rustfix compiletest header
1 parent 5c7d4da commit dab4531

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/tests/adding.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,12 @@ exhaustive. Header commands can generally be found by browsing the
149149
source.
150150

151151
* `run-rustfix` for UI tests, indicates that the test produces
152-
structured suggestions, which are then applied and the final
153-
source is stored in a `.fixed` file and compiled again. The final
154-
compilation is required to succeed.
152+
structured suggestions. The test writer should create a `.fixed`
153+
file, which contains the source with the suggestions applied.
154+
When the test is run, compiletest first checks that the correct
155+
lint/warning is generated. Then, it applies the suggestion and
156+
compares against `.fixed` (they must match). Finally, the fixed
157+
source is compiled, and this compilation is required to succeed.
155158
* `min-{gdb,lldb}-version`
156159
* `min-llvm-version`
157160
* `compile-pass` for UI tests, indicates that the test is

0 commit comments

Comments
 (0)