Re: [PATCH v2 5/5] rust: enable `clippy::as_underscore` lint

From: Miguel Ojeda
Date: Wed Mar 12 2025 - 11:50:15 EST


On Wed, Mar 12, 2025 at 4:36 PM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
>
> Yeah, we don't have strict provenance APIs (and we can't introduce
> them without compiler tooling or bumping MSRV). I'm not sure if we are

The strict provenance APIs were added a long time ago (1.61) -- in
fact we briefly discussed doing so back then (we started before that,
with 1.58).

So unless we need some detail that changed recently (i.e. since 1.78),
we should be able to use them, and it should be fairly safe since they
are stable now (1.84).

Cheers,
Miguel