Skip to content

Commit f55995b

Browse files
committed
Rollup merge of rust-lang#31332 - durka:errorck-fileline, r=brson
Small modification to rust-lang#31288. Shows full path and line number for unused error codes.
2 parents 93042f2 + 20c1dfd commit f55995b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/errorck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def check_unused_error_codes(error_codes, check_error_codes, filenames, dirnames
114114
if errcode in errcode_checked:
115115
continue
116116
all_errors.append(errcode)
117-
print("error: unused error code: " + errcode)
117+
print("error: unused error code: {0} ({1}:{2})".format(*errcode_map[errcode][0]))
118118
errors = True
119119

120120

0 commit comments

Comments
 (0)