]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #5406 - flip1995:update_lints_fix, r=flip1995
authorPhilipp Krones <hello@philkrones.com>
Wed, 8 Apr 2020 13:50:15 +0000 (15:50 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 13:50:15 +0000 (15:50 +0200)
commit46337cb6a8bfe37474f4b7ef7bd0a99b36ce0b80
tree2fa65e896e38b65b5e3c315884f6a810fef2946d
parent0b4098335d9ea2468f0ceea82f3c8315fa5decc1
parent30503a91d2cd19239d0aed802cd740ec6f2a7e06
Rollup merge of #5406 - flip1995:update_lints_fix, r=flip1995

Fix update_lints

This fixes a bug in update_lints, where `internal` lints were not registered properly. This also cleans up some code. For example: The code generation functions no longer filter the lints the are given. This is now the task of the caller. This way, it is more obvious in the `replace_in_file` calls which lints will be included in which part of a file.

This also turns the lint modules private. There is no need for them to be public, since shared code should be in the utils module anyway.

And last but not least, this fixes the `register_lints` code generation, so also internal lints get registered.

changelog: none