rust: fully disable all lints when no_lint is set

If the no_lint attribute is set, we now explicitly disable any warning
or error.

Bug: 162897623
Test: cd external/selinux; mma; check the build log for warnings
Change-Id: I5338bda77ab25ded7cc43cc3afd29419fcbd9808
This commit is contained in:
Thiébaud Weksteen
2020-08-07 13:56:35 +02:00
parent 9bf3042493
commit 4318e1c650
2 changed files with 4 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ var DefaultLocalClippyChecks = []PathBasedClippyConfig{
{"vendor/google", rustcDefault, true, clippyDefault},
{"vendor/", rustcVendor, true, clippyVendor},
}
var AllowAllLints = rustcAllowAll
// ClippyLintsForDir returns a boolean if Clippy should be executed and if so, the lints to be used.
func ClippyLintsForDir(dir string) (bool, string) {