Re: [PATCH v4 1/3] rust: kunit: add KUnit case and suite macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 9, 2024 at 9:18 AM David Gow <davidgow@xxxxxxxxxx> wrote:
>
> Is there somewhere else we can put the attribute to support this
> without having to either disable the warning, or use the experimental
> feature globally?

Yeah, on the item, e.g. https://godbolt.org/z/oo8osadn4:

    const _: () = {
        static mut X: i32 = 42;

        #[allow(unused_unsafe)]
        static mut S: *const i32 = unsafe { core::ptr::addr_of_mut!(X) };
    };

Cheers,
Miguel





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux