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 diff --git a/rust/compiler.go b/rust/compiler.go index c2b7e569c..0274015c9 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -32,6 +32,10 @@ func (compiler *baseCompiler) setNoStdlibs() { compiler.Properties.No_stdlibs = proptools.BoolPtr(true) } +func (compiler *baseCompiler) setNoLint() { + compiler.Properties.No_lint = proptools.BoolPtr(true) +} + func NewBaseCompiler(dir, dir64 string, location installLocation) *baseCompiler { return &baseCompiler{ Properties: BaseCompilerProperties{},