Update needed for Rust v1.77.1
error: field `0` is never read
--> frameworks/native/libs/gui/rust/aidl_types/src/lib.rs:27:26
|
27 | pub struct $name(Option<()>);
| ^^^^^^^^^^
...
44 | stub_unstructured_parcelable!(BitTube);
| --------------------------------------
| | |
| | field in this struct
| in this macro invocation
|
= note: `BitTube` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
= note: this error originates in the macro `stub_unstructured_parcelable` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
27 | pub struct $name(());
| ~~
Bug: http://b/330185853
Test: m rust
Change-Id: I8ecaba1f86e00b3ed480e423064edc47153c1244
diff --git a/libs/gui/rust/aidl_types/src/lib.rs b/libs/gui/rust/aidl_types/src/lib.rs
index 3d29529..941b1f9 100644
--- a/libs/gui/rust/aidl_types/src/lib.rs
+++ b/libs/gui/rust/aidl_types/src/lib.rs
@@ -20,6 +20,7 @@
StatusCode,
};
+#[allow(dead_code)]
macro_rules! stub_unstructured_parcelable {
($name:ident) => {
/// Unimplemented stub parcelable.