Skip to content

Commit a157fbf

Browse files
committed
Translate a paragraph
1 parent 38bbb67 commit a157fbf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/send-and-sync.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,15 @@ impl !Send for SpecialThreadToken {}
132132
impl !Sync for SpecialThreadToken {}
133133
```
134134

135+
<!--
135136
Note that *in and of itself* it is impossible to incorrectly derive Send and
136137
Sync. Only types that are ascribed special meaning by other unsafe code can
137138
possible cause trouble by being incorrectly Send or Sync.
139+
-->
140+
141+
*それ自体では* Send や Sync を不正に継承してしまうことはありえないということに注意
142+
してください。他のアンセーフなコードによって特別な意味を持ってしまった型のみが、
143+
不正な Send や Sync によって問題を引き起こしてしまう可能性があります。
138144

139145
Most uses of raw pointers should be encapsulated behind a sufficient abstraction
140146
that Send and Sync can be derived. For instance all of Rust's standard

0 commit comments

Comments
 (0)