Rollup merge of #131353 - GuillaumeGomez:check_rustdoc_test_option, r=jieyouxu

Add documentation for `runtest::check_rustdoc_test_option` method

r? `@jieyouxu`
This commit is contained in:
Matthias Krüger 2024-10-07 12:23:56 +02:00 committed by GitHub
commit fd2278d017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();