Skip to content

Commit 7335110

Browse files
committed
incr-comp: add clarifying comments to incr-prev-body-beyond-eof test
1 parent b71e627 commit 7335110

File tree

2 files changed

+8
-4
lines changed
  • src/test/run-make/incr-prev-body-beyond-eof

2 files changed

+8
-4
lines changed

src/test/run-make/incr-prev-body-beyond-eof/a.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ fn main() {
33
foo();
44
}
55

6+
// For this test to operate correctly, foo's body must start on exactly the same
7+
// line and column and have the exact same length in bytes in a.rs and b.rs. In
8+
// a.rs, the body must end on a line number which does not exist in b.rs.
9+
// Basically, avoid modifying this file, including adding or removing whitespace!
610
fn foo() {
7-
// foo's span in a.rs and b.rs must be identical
8-
// with respect to start line/column and length.
911
assert_eq!(1, 1);
1012

1113

src/test/run-make/incr-prev-body-beyond-eof/b.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ fn main() {
33
foo();
44
}
55

6+
// For this test to operate correctly, foo's body must start on exactly the same
7+
// line and column and have the exact same length in bytes in a.rs and b.rs. In
8+
// a.rs, the body must end on a line number which does not exist in b.rs.
9+
// Basically, avoid modifying this file, including adding or removing whitespace!
610
fn foo() {
7-
// foo's span in a.rs and b.rs must be identical
8-
// with respect to start line/column and length.
911
assert_eq!(1, 1);////
1012
}

0 commit comments

Comments
 (0)