Skip to content

Commit 52daf9f

Browse files
committed
added error handle for error code > 9999
1 parent 651e9cf commit 52daf9f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

compiler/rustc_error_codes/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ E0801: 0801,
547547
E0802: 0802,
548548
E0803: 0803,
549549
E0804: 0804,
550+
E9999: 9999,
550551
);
551552
)
552553
}

compiler/rustc_errors/src/codes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use std::fmt;
88

99
rustc_index::newtype_index! {
10-
#[max = 9999] // Because all error codes have four digits.
1110
#[orderable]
1211
#[encodable]
1312
#[debug_format = "ErrCode({})"]

0 commit comments

Comments
 (0)