diff options
| author | Ezra Shaw <ezrasure@outlook.com> | 2023-01-03 08:44:57 +1300 |
|---|---|---|
| committer | Ezra Shaw <ezrasure@outlook.com> | 2023-01-03 08:44:57 +1300 |
| commit | c00ab4b2de2b5a321476244a9316d4dd3d8f8242 (patch) | |
| tree | 3293ef4bf4267e184a8f440864aa4c45b4ba9d02 | |
| parent | b7341db5d82e93c4257763b33fec853817197078 (diff) | |
| download | rust-c00ab4b2de2b5a321476244a9316d4dd3d8f8242.tar.gz rust-c00ab4b2de2b5a321476244a9316d4dd3d8f8242.zip | |
print highest error code
| -rw-r--r-- | src/tools/tidy/src/error_codes.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/tidy/src/error_codes.rs b/src/tools/tidy/src/error_codes.rs index 938e194abdf..fdc9d789905 100644 --- a/src/tools/tidy/src/error_codes.rs +++ b/src/tools/tidy/src/error_codes.rs @@ -51,6 +51,7 @@ pub fn check(root_path: &Path, search_paths: &[&Path], verbose: bool, bad: &mut // Stage 1: create list let error_codes = extract_error_codes(root_path, &mut errors, verbose); println!("Found {} error codes", error_codes.len()); + println!("Highest error code: `{}`", error_codes.iter().max().unwrap()); // Stage 2: check list has docs let no_longer_emitted = check_error_codes_docs(root_path, &error_codes, &mut errors, verbose); |
