]> Gentwo Git Trees - linux/.git/commit
rust: sync: document `PhantomData` in `Arc`
authorTamir Duberstein <tamird@gmail.com>
Thu, 7 Nov 2024 10:36:46 +0000 (05:36 -0500)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 17 Dec 2024 23:37:21 +0000 (00:37 +0100)
commit2dde1c8b04a5c415912bc3ffa8b677eb364dbcb7
tree79202a24dcc32027498cc6b8d66b3b6ad5152345
parent3f4223c007b25327c49aabe3af8ecc72bb33dbf6
rust: sync: document `PhantomData` in `Arc`

Add a comment explaining the relevant semantics of `PhantomData`. This
should help future readers who may, as I did, assume that this field is
redundant at first glance.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20241107-simplify-arc-v2-1-7256e638aac1@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync/arc.rs