Skip to content

Commit 5e09437

Browse files
committed
---
yaml --- r: 182256 b: refs/heads/beta c: 7cd762a h: refs/heads/master v: v3
1 parent 05a4ebd commit 5e09437

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 2adc8b529ada1d697ec51a94164d9b3f66a40b79
34+
refs/heads/beta: 7cd762a9672e7d260025c2e93a74a45cd61bd291
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/src/libcore/cell.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,13 @@ impl<'b, T> DerefMut for RefMut<'b, T> {
509509
///
510510
/// ```rust
511511
/// use std::cell::UnsafeCell;
512-
/// use std::marker;
512+
/// use std::marker::Sync;
513513
///
514514
/// struct NotThreadSafe<T> {
515515
/// value: UnsafeCell<T>,
516-
/// marker: marker::NoSync
517516
/// }
517+
///
518+
/// unsafe impl<T> Sync for NotThreadSafe<T> {}
518519
/// ```
519520
///
520521
/// **NOTE:** `UnsafeCell<T>` fields are public to allow static initializers. It

0 commit comments

Comments
 (0)