From 47b795c2acb82e5d19a6e19f73ead1a6c563a3ea Mon Sep 17 00:00:00 2001 From: Charisee Date: Tue, 9 Apr 2024 02:21:16 +0000 Subject: 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 --- libs/gui/rust/aidl_types/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gui/rust/aidl_types/src/lib.rs b/libs/gui/rust/aidl_types/src/lib.rs index 3d29529d23..941b1f9db8 100644 --- a/libs/gui/rust/aidl_types/src/lib.rs +++ b/libs/gui/rust/aidl_types/src/lib.rs @@ -20,6 +20,7 @@ use binder::{ StatusCode, }; +#[allow(dead_code)] macro_rules! stub_unstructured_parcelable { ($name:ident) => { /// Unimplemented stub parcelable. -- cgit v1.2.3-59-g8ed1b