Skip to content

Commit c00ab4b

Browse files
committed
print highest error code
1 parent b7341db commit c00ab4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/tidy/src/error_codes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub fn check(root_path: &Path, search_paths: &[&Path], verbose: bool, bad: &mut
5151
// Stage 1: create list
5252
let error_codes = extract_error_codes(root_path, &mut errors, verbose);
5353
println!("Found {} error codes", error_codes.len());
54+
println!("Highest error code: `{}`", error_codes.iter().max().unwrap());
5455

5556
// Stage 2: check list has docs
5657
let no_longer_emitted = check_error_codes_docs(root_path, &error_codes, &mut errors, verbose);

0 commit comments

Comments
 (0)