Skip to content

Commit 1f1dd5f

Browse files
Ezrashawmejrs
andauthored
pattern destructure has_test
Co-authored-by: Bruno Kolenbrander <[email protected]>
1 parent fafb18e commit 1f1dd5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/tidy/src/error_codes.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ fn check_error_codes_docs(
173173
return;
174174
}
175175

176-
// `has_test.0` checks whether the error code has any (potentially untested) code example.
177-
// `has_test.1` checks whether the error code has a proper (definitely tested) doctest.
178-
let has_test = check_explanation_has_doctest(&contents, &err_code);
176+
let (found_code_example, found_proper_doctest, emit_ignore_warning, emit_no_longer_warning) = check_explanation_has_doctest(&contents, &err_code);
179177
if has_test.2 {
180178
verbose_print!(
181179
verbose,

0 commit comments

Comments
 (0)