lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CW3RYK6CSPPU.3OJHLR8D4XUYN@gmail.com>
Date:   Mon, 09 Oct 2023 10:44:34 +0200
From:   "Vincenzo Palazzo" <vincenzopalazzodev@...il.com>
To:     "Trevor Gross" <tmgross@...ch.edu>,
        "Miguel Ojeda" <ojeda@...nel.org>,
        "Alex Gaynor" <alex.gaynor@...il.com>,
        "Wedson Almeida Filho" <wedsonaf@...il.com>
Cc:     "Boqun Feng" <boqun.feng@...il.com>, "Gary Guo" <gary@...yguo.net>,
        Björn Roy Baron <bjorn3_gh@...tonmail.com>,
        "Benno Lossin" <benno.lossin@...ton.me>,
        "Andreas Hindborg" <a.hindborg@...sung.com>,
        "Alice Ryhl" <aliceryhl@...gle.com>,
        "Martin Rodriguez Reboredo" <yakoyoku@...il.com>,
        <rust-for-linux@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        "FUJITA Tomonori" <fujita.tomonori@...il.com>
Subject: Re: [PATCH] rust: macros: update 'paste!' macro to accept string
 literals

> This allows combining user-specified strings with affixes to create
> namespaced identifiers.
>
> This sample code:
>
>     macro_rules! m {
>         ($name:lit) => {
>             paste!(struct [<_some_ $name _struct_>];)
>         }
>     }
>
>     m!("foo_bar");
>
> Would previously cause a compilation error. It will now generate:
>
>     struct _some_foo_bar_struct_;
>
> Reported-by: FUJITA Tomonori <fujita.tomonori@...il.com>
> Signed-off-by: Trevor Gross <tmgross@...ch.edu>
> ---

Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ