about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2023-04-09 12:35:54 +0900
committerGitHub <noreply@github.com>2023-04-09 12:35:54 +0900
commit1e4361a23f07bbc8f19cfadc3cc470651ece8212 (patch)
tree4d9d51dd8b77fde4a0911278d7d3b2b4a1228dd4 /library/std/src
parentec1712f06e21b72ed0ec5a4d1f12aa0383c764cc (diff)
parent5f50c0f7ac668bf1b2a29aa706d5b645e7060f65 (diff)
downloadrust-1e4361a23f07bbc8f19cfadc3cc470651ece8212.tar.gz
rust-1e4361a23f07bbc8f19cfadc3cc470651ece8212.zip
Rollup merge of #110060 - WaffleLapkin:sync_refs, r=jyn514
Document that `&T` and `&mut T` are `Sync` if `T` is

Proof: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=fec8dc9ec36e873bf2962a2367d67045
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/primitive_docs.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs
index bf8339335dd..51e6947a9c2 100644
--- a/library/std/src/primitive_docs.rs
+++ b/library/std/src/primitive_docs.rs
@@ -1362,6 +1362,7 @@ mod prim_usize {}
 /// * [`Hash`]
 /// * [`ToSocketAddrs`]
 /// * [`Send`] \(`&T` references also require <code>T: [Sync]</code>)
+/// * [`Sync`]
 ///
 /// [`std::fmt`]: fmt
 /// [`Hash`]: hash::Hash