]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #106341 - Ezrashaw:refactor-error-code-tidy-check, r=mejrs,klensy...
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 6 Jan 2023 20:26:10 +0000 (21:26 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Jan 2023 20:26:10 +0000 (21:26 +0100)
commit498216e9db724cb26f269b0419d4e9e2897cee79
treecbda599052c365aaa20441a53038a98cc32d7099
parent7568c49bf0c11038635458cabb9661b6b4297d74
parentc00ab4b2de2b5a321476244a9316d4dd3d8f8242
Rollup merge of #106341 - Ezrashaw:refactor-error-code-tidy-check, r=mejrs,klensy,GuillaumeGomez

refactor: clean up `errors.rs` and `error_codes_check.rs`

`errors.rs` is basically unused now, `error_codes_check.rs` is useful but not well commented, etc. It also doesn't check certain things which are certainly not correct. For example, `E0505` has a UI test in `src/test/ui/error-codes/` but that test actually outputs `E0504`?! Other issues like these exist. I've implemented these with "warnings" which are a bit rough around the edges but should be removed eventually.

r? `@GuillaumeGomez` (again not sure if you want to review but its relevant to you)
src/tools/tidy/src/lib.rs
src/tools/tidy/src/main.rs