Re: [PATCH v5 5/5] gpu: nova-core: add ChannelIdPool

Miguel Ojeda <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.rust,gmane.comp.video.dri.devel
Message-ID <CANiq72m=bbjgMZy-BCsB0hajMJcKb+j=jeMN=e4++B-XSUOzeg@mail.gmail.com>
On Mon, Aug 17, 2026 at 11:36 PM Burak Emir <[email protected]> wrote:
>
> To add a minor point to this, if rustc could figure out that a
> suitable non-zero number literal can be treated as NonZero<usize>,
> we'd not need a macro and it would all be very ergonomic...

Yeah, that and/or `1nz` literals could be nice. It may be a bit niche,
though; and we would like good ergonomics for our own custom types
too.

Nevertheless, I will ask upstream Rust in our next meeting about
https://github.com/rust-lang/rust/issues/69329.

I added it to https://github.com/Rust-for-Linux/linux/issues/354 as well.

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.