mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Rollup merge of #31332 - durka:errorck-fileline, r=brson
Small modification to #31288. Shows full path and line number for unused error codes.
This commit is contained in:
commit
f55995bad2
@ -114,7 +114,7 @@ if len(errcode_not_found) > 0:
|
||||
if errcode in errcode_checked:
|
||||
continue
|
||||
all_errors.append(errcode)
|
||||
print("error: unused error code: " + errcode)
|
||||
print("error: unused error code: {0} ({1}:{2})".format(*errcode_map[errcode][0]))
|
||||
errors = True
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user