make: aidl: Disable all lints for auto-generated Rust code This matches Soong's configuration for auto-generated Rust code. Bug: 389656759 Test: build.py qemu-generic-arm64-gicv3-test-debug Change-Id: I73bdd574536d978c215e32fc8934b809ef26ac7e
diff --git a/make/aidl.mk b/make/aidl.mk index 296ff4c..b88f023 100644 --- a/make/aidl.mk +++ b/make/aidl.mk
@@ -126,8 +126,8 @@ $(call FIND_CRATE,async-trait) \ $(call FIND_CRATE,lazy_static) \ -# The AIDL compiler marks an aidl_data variable as mutable and rustc complains -MODULE_RUSTFLAGS += -Aunused-mut -Aunused-variables +# Disable all lints for auto-generated Rust sources +MODULE_RUSTFLAGS += --cap-lints allow MODULE_SRCS += $(AIDL_ROOT_RS) MODULE_EXPORT_SRCDEPS += $(AIDL_ROOT_RS)