Skip to content

Commit

Permalink
Rollup merge of rust-lang#131353 - GuillaumeGomez:check_rustdoc_test_…
Browse files Browse the repository at this point in the history
…option, r=jieyouxu

Add documentation for `runtest::check_rustdoc_test_option` method

r? `@jieyouxu`
  • Loading branch information
matthiaskrgr authored Oct 7, 2024
2 parents 7d7b43c + dde78bd commit fd2278d
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 fd2278d

Please sign in to comment.