about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-make/incr-prev-body-beyond-eof/a.rs6
-rw-r--r--src/test/run-make/incr-prev-body-beyond-eof/b.rs6
2 files changed, 8 insertions, 4 deletions
diff --git a/src/test/run-make/incr-prev-body-beyond-eof/a.rs b/src/test/run-make/incr-prev-body-beyond-eof/a.rs
index a12bb96ba5a..ca70fb56334 100644
--- a/src/test/run-make/incr-prev-body-beyond-eof/a.rs
+++ b/src/test/run-make/incr-prev-body-beyond-eof/a.rs
@@ -3,9 +3,11 @@ fn main() {
     foo();
 }
 
+// For this test to operate correctly, foo's body must start on exactly the same
+// line and column and have the exact same length in bytes in a.rs and b.rs. In
+// a.rs, the body must end on a line number which does not exist in b.rs.
+// Basically, avoid modifying this file, including adding or removing whitespace!
 fn foo() {
-    // foo's span in a.rs and b.rs must be identical
-    // with respect to start line/column and length.
     assert_eq!(1, 1);
 
 
diff --git a/src/test/run-make/incr-prev-body-beyond-eof/b.rs b/src/test/run-make/incr-prev-body-beyond-eof/b.rs
index 23e007d0f1c..a272e44a632 100644
--- a/src/test/run-make/incr-prev-body-beyond-eof/b.rs
+++ b/src/test/run-make/incr-prev-body-beyond-eof/b.rs
@@ -3,8 +3,10 @@ fn main() {
     foo();
 }
 
+// For this test to operate correctly, foo's body must start on exactly the same
+// line and column and have the exact same length in bytes in a.rs and b.rs. In
+// a.rs, the body must end on a line number which does not exist in b.rs.
+// Basically, avoid modifying this file, including adding or removing whitespace!
 fn foo() {
-    // foo's span in a.rs and b.rs must be identical
-    // with respect to start line/column and length.
     assert_eq!(1, 1);////
 }