* [PATCH 1/2] rust: pin-init: fix broken rust doc link
@ 2025-10-16 21:17 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
  0 siblings, 2 replies; 7+ 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, Fiona Behrens, Alban Kurti
  Cc: rust-for-linux, linux-kernel
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>
---
 rust/pin-init/src/macros.rs | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/rust/pin-init/src/macros.rs b/rust/pin-init/src/macros.rs
index d6acf2cd291e..682c61a587a0 100644
--- a/rust/pin-init/src/macros.rs
+++ b/rust/pin-init/src/macros.rs
@@ -506,6 +506,8 @@
 /// Creates a `unsafe impl<...> PinnedDrop for $type` block.
 ///
 /// See [`PinnedDrop`] for more information.
+///
+/// [`PinnedDrop`]: crate::PinnedDrop
 #[doc(hidden)]
 #[macro_export]
 macro_rules! __pinned_drop {
base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
-- 
2.51.0
^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [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
  1 sibling, 0 replies; 7+ 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] 7+ 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
  1 sibling, 1 reply; 7+ 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] 7+ 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; 7+ 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] 7+ 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; 7+ 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] 7+ 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; 7+ 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] 7+ 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; 7+ 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] 7+ messages in thread
end of thread, other threads:[~2025-10-18 19:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).