Re: [PATCH v3 03/12] rust: xarray: add `contains_index` method

From: Miguel Ojeda

Date: Thu Feb 12 2026 - 06:28:11 EST


On Thu, Feb 12, 2026 at 11:52 AM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> Apparently this kind of code used to be OK [1] but the Rust devs decided

I don't think it used to be OK -- I think that issue was talking about
code that required non-lexical lifetimes, which was an unstable
feature back then, and the behavior changed while they worked on it.

When NLLs became stable later on (years later), the feature never
allowed the code.

Cheers,
Miguel