about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorArthur Milchior <arthur@milchior.fr>2024-01-27 22:12:41 +0100
committerGitHub <noreply@github.com>2024-01-28 06:12:41 +0900
commit02847e40a1ebb403f665a4be39e866bb4ea44f69 (patch)
treed929624af2f4e1fab0f73133fd0ee613112e8559 /src/doc/rustc-dev-guide
parent9d0ed10bbd388d5418d461ab0b6b9c4ed974a9d1 (diff)
downloadrust-02847e40a1ebb403f665a4be39e866bb4ea44f69.tar.gz
rust-02847e40a1ebb403f665a4be39e866bb4ea44f69.zip
Followup to #1862 (#1864)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/incrcomp-debugging.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/incrcomp-debugging.md b/src/doc/rustc-dev-guide/src/incrcomp-debugging.md
index 8af06310cb1..7045d3fa39d 100644
--- a/src/doc/rustc-dev-guide/src/incrcomp-debugging.md
+++ b/src/doc/rustc-dev-guide/src/incrcomp-debugging.md
@@ -22,8 +22,10 @@ fn bar() { foo(); }
 ```
 
 This should be read as
-> If this (`foo`) is changed, then this (i.e. `bar`)'s TypeckTables would need
-  to be changed. Also, this
+> If this (`foo`) is changed, then this (i.e. `bar`)'s TypeckTables would need to be changed.
+
+Technically, what occurs is that the test is expected to emit the string "OK" on
+stderr, associated to this line.
 
 You could also add the lines
 
@@ -33,7 +35,8 @@ fn baz() { }
 ```
 
 Whose meaning is
-> If `foo` is changed, then `baz`'s TypeckTables does not need to be changed, as there is no path.
+> If `foo` is changed, then `baz`'s TypeckTables does not need to be changed.
+> The macro must emit an error, and the error message must contains "no path".
 
 Recall that the `//~ ERROR OK` is a comment from the point of view of the Rust
 code we test, but is meaningful from the point of view of the test itself.