Skip to content

Commit dde78bd

Browse files
Add documentation for runtest::check_rustdoc_test_option method
1 parent 612796c commit dde78bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/compiletest/src/runtest.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,10 @@ impl<'test> TestCx<'test> {
21092109
.collect()
21102110
}
21112111

2112+
/// This method is used for `//@ check-test-line-numbers-match`.
2113+
///
2114+
/// It checks that doctests line in the displayed doctest "name" matches where they are
2115+
/// defined in source code.
21122116
fn check_rustdoc_test_option(&self, res: ProcRes) {
21132117
let mut other_files = Vec::new();
21142118
let mut files: HashMap<String, Vec<usize>> = HashMap::new();

0 commit comments

Comments
 (0)