Re: [PATCH RFC 02/20] rust_binder: add binderfs support to Rust binder

From: Alice Ryhl
Date: Wed Nov 08 2023 - 05:31:12 EST


Finn Behrens <finn@xxxxxxxxx> writes:
> On 1 Nov 2023, at 19:01, Alice Ryhl wrote:
>> +macro_rules! decl_wrapper {
>> + ($newname:ident, $wrapped:ty) => {
>> + #[derive(Copy, Clone, Default)]
>> + #[repr(transparent)]
>> + pub(crate) struct $newname($wrapped);
>> + // SAFETY: This macro is only used with types where this is ok.
>
> Would it make sense so also annotade this safety requirement on the
> macro itself?
>
> It is only file private, but could help not overlook it, when using for
> something new in the same file.

Sure, I can move the comment.

Alice