Re: [PATCH] rust: pin-init: replace shadowed return token by `unsafe`-to-create token

From: Alice Ryhl

Date: Wed Mar 11 2026 - 12:05:21 EST


On Wed, Mar 11, 2026 at 2:01 PM Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
>
> On Wed Mar 11, 2026 at 11:50 AM CET, Benno Lossin wrote:
> > In the face of Type Alias Impl Trait (TAIT) and the next trait solver,
> > this solution no longer works [1]. The shadowed struct can be named
> > through type inference. In addition, there is an RFC proposing to add
> > the feature of path inference to Rust, which would similarly allow [2]
>
> NIT: I'm not sure if the sentence is supposed to end here, at least it misses a
> period.
>
> Besides that, is my understanding correct that the changes mentioned above are
> targeting a subsequent Rust edition?

I don't think it's currently clear when/if the changes mentioned will
land. But on the topic of editions, it's worth keeping in mind that
macros don't know the edition they are expanding code into, so the
macro can't have different logic per edition.

Alice