rust: sync: reword the `Arc` safety comment for `Sync`
authorAlice Ryhl <aliceryhl@google.com>
Wed, 31 May 2023 14:59:37 +0000 (14:59 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 31 May 2023 16:53:10 +0000 (18:53 +0200)
commitd701e061cb14f589f8c4f48fd7fbe81c0e34b7e7
treecd4df82f1656a5d98eeb6a7e48c34cad1fad7de5
parentf8110cd157833e721f50f779dc70f8ae5b429832
rust: sync: reword the `Arc` safety comment for `Sync`

The safety comment on `impl Sync for Arc` references the Send safety
comment. This commit avoids that in case the two comments drift apart in
the future.

Suggested-by: Andreas Hindborg <a.hindborg@samsung.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20230531145939.3714886-3-aliceryhl@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync/arc.rs