Skip to content

Commit

Permalink
Add documentation for runtest::check_rustdoc_test_option method
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 7, 2024
1 parent 612796c commit dde78bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,10 @@ impl<'test> TestCx<'test> {
.collect()
}

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

0 comments on commit dde78bd

Please sign in to comment.