Re: [PATCH v2 2/2] rust: std_vendor: add `likely()`, `unlikely()` and `cold_path()`

Miguel Ojeda <[email protected]>
Newsgroups dev.linux.lists.llvm,org.kernel.vger.rust-for-linux
Message-ID <CANiq72m37+nKB_L5W3EraM5APnG+pEPemadF3sEt3fud_qKNpw@mail.gmail.com>
On Fri, Jul 10, 2026 at 4:00 PM Gary Guo <[email protected]> wrote:
>
> It might worth adding a user for this too in v3. `warn_flags!()` would be a good
> example.

+1, yeah.

We will need to go back to v1 or similar (simpler now with the new
MSRV), because if I recall correctly, I noticed at some point that v3
wouldn't actually generate the same assembly, which is why I didn't
apply it yet. I have to re-recheck and send a new one.

Cheers,
Miguel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.