* [PATCH 2/2] rust: pin-init: fix typo in docs
2025-10-16 21:17 [PATCH 1/2] rust: pin-init: fix broken rust doc link Benno Lossin
@ 2025-10-16 21:17 ` Benno Lossin
2025-10-16 21:24 ` [PATCH 1/2] rust: pin-init: fix broken rust doc link Miguel Ojeda
2025-11-19 21:55 ` Miguel Ojeda
2 siblings, 0 replies; 10+ messages in thread
From: Benno Lossin @ 2025-10-16 21:17 UTC (permalink / raw)
To: Benno Lossin, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich
Cc: Brian Harring, rust-for-linux, linux-kernel
From: Brian Harring <ferringb@gmail.com>
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Benno Lossin <lossin@kernel.org>
---
rust/pin-init/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/pin-init/README.md b/rust/pin-init/README.md
index 723e275445d4..74bbb4e0a2f7 100644
--- a/rust/pin-init/README.md
+++ b/rust/pin-init/README.md
@@ -9,7 +9,7 @@
> [!NOTE]
>
> This crate was originally named [`pinned-init`], but the migration to
-> `pin-init` is not yet complete. The `legcay` branch contains the current
+> `pin-init` is not yet complete. The `legacy` branch contains the current
> version of the `pinned-init` crate & the `main` branch already incorporates
> the rename to `pin-init`.
>
--
2.51.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-16 21:17 [PATCH 1/2] rust: pin-init: fix broken rust doc link Benno Lossin
2025-10-16 21:17 ` [PATCH 2/2] rust: pin-init: fix typo in docs Benno Lossin
@ 2025-10-16 21:24 ` Miguel Ojeda
2025-10-16 21:47 ` Benno Lossin
2025-11-19 21:55 ` Miguel Ojeda
2 siblings, 1 reply; 10+ messages in thread
From: Miguel Ojeda @ 2025-10-16 21:24 UTC (permalink / raw)
To: Benno Lossin
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel
On Thu, Oct 16, 2025 at 11:17 PM Benno Lossin <lossin@kernel.org> wrote:
>
> Rust 1.92.0 warns when building the documentation that [`PinnedDrop`] is
> an invalid reference. This is correct and it's weird that it didn't warn
> before, so fix the link.
It is because it is hidden -- I have patches to fix this (it is not
just in pin-init but elsewhere too), but I am waiting for confirmation
on whether this is actually intentional behavior:
https://github.com/rust-lang/rust/pull/147153#issuecomment-3395484636
From the early reply I got, it seems it is not, so it may be that it is "fixed".
Personally, I think it is useful, so I hope they keep it, even if as a
new opt-in option or similar.
Of course, we can land this patch since it does not matter either way,
but please add a note with the above in the commit message if you land
it.
Thanks!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-16 21:24 ` [PATCH 1/2] rust: pin-init: fix broken rust doc link Miguel Ojeda
@ 2025-10-16 21:47 ` Benno Lossin
2025-10-17 12:58 ` Miguel Ojeda
0 siblings, 1 reply; 10+ messages in thread
From: Benno Lossin @ 2025-10-16 21:47 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel
On Thu Oct 16, 2025 at 11:24 PM CEST, Miguel Ojeda wrote:
> On Thu, Oct 16, 2025 at 11:17 PM Benno Lossin <lossin@kernel.org> wrote:
>>
>> Rust 1.92.0 warns when building the documentation that [`PinnedDrop`] is
>> an invalid reference. This is correct and it's weird that it didn't warn
>> before, so fix the link.
>
> It is because it is hidden -- I have patches to fix this (it is not
> just in pin-init but elsewhere too), but I am waiting for confirmation
> on whether this is actually intentional behavior:
>
> https://github.com/rust-lang/rust/pull/147153#issuecomment-3395484636
>
> From the early reply I got, it seems it is not, so it may be that it is "fixed".
>
> Personally, I think it is useful, so I hope they keep it, even if as a
> new opt-in option or similar.
>
> Of course, we can land this patch since it does not matter either way,
> but please add a note with the above in the commit message if you land
> it.
Thanks a lot for the added context! I will add it when applying. The
`__pinned_drop!` macro will be gone with the syn patches this cycle, so
in this case, we don't care what the resolution will be.
---
Cheers,
Benno
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-16 21:47 ` Benno Lossin
@ 2025-10-17 12:58 ` Miguel Ojeda
2025-10-17 13:06 ` Guillaume Gomez
2025-10-18 19:26 ` Miguel Ojeda
0 siblings, 2 replies; 10+ messages in thread
From: Miguel Ojeda @ 2025-10-17 12:58 UTC (permalink / raw)
To: Benno Lossin
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel, Guillaume Gomez
On Thu, Oct 16, 2025 at 11:47 PM Benno Lossin <lossin@kernel.org> wrote:
>
> Thanks a lot for the added context! I will add it when applying. The
> `__pinned_drop!` macro will be gone with the syn patches this cycle, so
> in this case, we don't care what the resolution will be.
In the end, it wasn't intentional, so Guillaume created this PR:
https://github.com/rust-lang/rust/pull/147809
Thus 1.92 may end up without this change in behavior.
Guillaume and I also discussed the possibility of checking these
things nevertheless (i.e. without needing a second pass) as well as
the related topic of having a runtime solution for toggling
private/hidden items (and thus getting them checked too). We could
perhaps try a custom thing in rust.docs.kernel.org to see how it looks
and if people like it.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-17 12:58 ` Miguel Ojeda
@ 2025-10-17 13:06 ` Guillaume Gomez
2025-11-19 18:27 ` Miguel Ojeda
2025-10-18 19:26 ` Miguel Ojeda
1 sibling, 1 reply; 10+ messages in thread
From: Guillaume Gomez @ 2025-10-17 13:06 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Benno Lossin, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel
Indeed, although, please open an issue on rust repository so the team
can discuss how this feature would look like.
Le ven. 17 oct. 2025 à 14:59, Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> a écrit :
>
> On Thu, Oct 16, 2025 at 11:47 PM Benno Lossin <lossin@kernel.org> wrote:
> >
> > Thanks a lot for the added context! I will add it when applying. The
> > `__pinned_drop!` macro will be gone with the syn patches this cycle, so
> > in this case, we don't care what the resolution will be.
>
> In the end, it wasn't intentional, so Guillaume created this PR:
>
> https://github.com/rust-lang/rust/pull/147809
>
> Thus 1.92 may end up without this change in behavior.
>
> Guillaume and I also discussed the possibility of checking these
> things nevertheless (i.e. without needing a second pass) as well as
> the related topic of having a runtime solution for toggling
> private/hidden items (and thus getting them checked too). We could
> perhaps try a custom thing in rust.docs.kernel.org to see how it looks
> and if people like it.
>
> Cheers,
> Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-17 13:06 ` Guillaume Gomez
@ 2025-11-19 18:27 ` Miguel Ojeda
2025-11-19 21:20 ` Guillaume Gomez
0 siblings, 1 reply; 10+ messages in thread
From: Miguel Ojeda @ 2025-11-19 18:27 UTC (permalink / raw)
To: Guillaume Gomez
Cc: Benno Lossin, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel
On Fri, Oct 17, 2025 at 3:06 PM Guillaume Gomez
<guillaume1.gomez@gmail.com> wrote:
>
> Indeed, although, please open an issue on rust repository so the team
> can discuss how this feature would look like.
Done -- for both the features (checking & runtime toggle):
https://github.com/rust-lang/rust/issues/149105
https://github.com/rust-lang/rust/issues/149106
Of course, if we have the latter, then we may not need the former etc.
I tried to add a good chunk of context in the issues, especially the
first one.
I hope that helps, and thanks Guillaume!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-11-19 18:27 ` Miguel Ojeda
@ 2025-11-19 21:20 ` Guillaume Gomez
0 siblings, 0 replies; 10+ messages in thread
From: Guillaume Gomez @ 2025-11-19 21:20 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Benno Lossin, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel
Thanks for opening them!
Gonna take a look tomorrow.
Le mer. 19 nov. 2025 à 19:28, Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> a écrit :
>
> On Fri, Oct 17, 2025 at 3:06 PM Guillaume Gomez
> <guillaume1.gomez@gmail.com> wrote:
> >
> > Indeed, although, please open an issue on rust repository so the team
> > can discuss how this feature would look like.
>
> Done -- for both the features (checking & runtime toggle):
>
> https://github.com/rust-lang/rust/issues/149105
> https://github.com/rust-lang/rust/issues/149106
>
> Of course, if we have the latter, then we may not need the former etc.
> I tried to add a good chunk of context in the issues, especially the
> first one.
>
> I hope that helps, and thanks Guillaume!
>
> Cheers,
> Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-17 12:58 ` Miguel Ojeda
2025-10-17 13:06 ` Guillaume Gomez
@ 2025-10-18 19:26 ` Miguel Ojeda
1 sibling, 0 replies; 10+ messages in thread
From: Miguel Ojeda @ 2025-10-18 19:26 UTC (permalink / raw)
To: Benno Lossin
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel, Guillaume Gomez
On Fri, Oct 17, 2025 at 2:58 PM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
>
> In the end, it wasn't intentional, so Guillaume created this PR:
>
> https://github.com/rust-lang/rust/pull/147809
>
> Thus 1.92 may end up without this change in behavior.
Indeed, it just got merged for 1.92.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] rust: pin-init: fix broken rust doc link
2025-10-16 21:17 [PATCH 1/2] rust: pin-init: fix broken rust doc link Benno Lossin
2025-10-16 21:17 ` [PATCH 2/2] rust: pin-init: fix typo in docs Benno Lossin
2025-10-16 21:24 ` [PATCH 1/2] rust: pin-init: fix broken rust doc link Miguel Ojeda
@ 2025-11-19 21:55 ` Miguel Ojeda
2 siblings, 0 replies; 10+ messages in thread
From: Miguel Ojeda @ 2025-11-19 21:55 UTC (permalink / raw)
To: Benno Lossin, Guillaume Gomez, León Orell Valerian Liehr
Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Fiona Behrens, Alban Kurti, rust-for-linux,
linux-kernel
On Thu, Oct 16, 2025 at 11:17 PM Benno Lossin <lossin@kernel.org> wrote:
>
> Rust 1.92.0 warns when building the documentation that [`PinnedDrop`] is
> an invalid reference. This is correct and it's weird that it didn't warn
> before, so fix the link.
>
> Signed-off-by: Benno Lossin <lossin@kernel.org>
Benno asked me to pick these patches up for him this cycle.
Applied to `rust-next` -- thanks everyone!
[ The reason is that it is hidden -- I had asked about that in the
upstream PR that changed the behavior because I wasn't sure it was
intentional (and thus whether we needed to fix this and other cases):
https://github.com/rust-lang/rust/pull/147153#issuecomment-3395484636
It turns out it was not, and it has been fixed for 1.92.0's upcoming
release thanks to Guillaume and León. So we do not strictly need
this patch and the other changes anymore:
https://github.com/rust-lang/rust/pull/147809
However, checking hidden/private items or, even better, a runtime
toggle to be able to see those on the fly, is something that I think
would be quite nice so I have had it in our usual lists for a while.
Guillaume is open to the idea and perhaps experimenting with an
implementation on our side first -- he asked me to open issues
upstream:
https://github.com/rust-lang/rust/issues/149105
https://github.com/rust-lang/rust/issues/149106
- Miguel ]
Cc'd León as well, who I should have probably Cc'd originally too.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread