make: aidl: Disable all lints for auto-generated Rust code am: dbe1bdd079

Original change: https://android-review.googlesource.com/c/trusty/lib/+/3449401

Change-Id: I3bfb5ced878aa735ffb5d519ddeb8e291bd2b158
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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)