diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-07 12:23:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-07 12:23:56 +0200 |
| commit | fd2278d017e3a06efb9ee8698dcd4a5b95d2482d (patch) | |
| tree | 91a38376017a844d1be2e59b27c6f3c22ae649b8 | |
| parent | 7d7b43c39a40110547c08430d8e1cd5bc6d508fc (diff) | |
| parent | dde78bd9462fa50e035c46f6f7a7dba15194971e (diff) | |
| download | rust-fd2278d017e3a06efb9ee8698dcd4a5b95d2482d.tar.gz rust-fd2278d017e3a06efb9ee8698dcd4a5b95d2482d.zip | |
Rollup merge of #131353 - GuillaumeGomez:check_rustdoc_test_option, r=jieyouxu
Add documentation for `runtest::check_rustdoc_test_option` method r? `@jieyouxu`
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 74d86d2b521..e26c178ccb0 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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(); |
