From da931d4abdd32d97c518ffb901c6631317d78b80 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Tue, 4 Aug 2020 13:02:28 -0700 Subject: [rust] Disable lints for generated bindings Bindgen generated bindings will not pass lints, so we need to disable them when building bindings crates. Test: m libbinder_ndk_bindgen Change-Id: I4536f15f8505ff8d5436f1e6cbc2035e6801276d --- rust/bindgen.go | 1 + 1 file changed, 1 insertion(+) (limited to 'rust/bindgen.go') diff --git a/rust/bindgen.go b/rust/bindgen.go index 304f8ec38..559adffba 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -173,6 +173,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat _, library := NewRustLibrary(hod) library.BuildOnlyRust() + library.setNoLint() library.sourceProvider = bindgen module.sourceProvider = bindgen -- cgit v1.2.3-59-g8ed1b