Skip to content

Commit 1ee7e48

Browse files
committed
---
yaml --- r: 148894 b: refs/heads/try2 c: 4f462a0 h: refs/heads/master v: v3
1 parent 7027b44 commit 1ee7e48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 06a8d59ded67dfaa589112ceb8a8e031bc575249
8+
refs/heads/try2: 4f462a05066ea4ddbe65d3033402e7c80247ddde
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libextra/arc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ pub struct CowArc<T> { priv x: UnsafeArc<T> }
559559
/// mutation of the contents if there is only a single reference to
560560
/// the data. If there are multiple references the data is automatically
561561
/// cloned and the task modifies the cloned data in place of the shared data.
562-
impl<T:Clone+Send> CowArc<T> {
562+
impl<T:Clone+Send+Freeze> CowArc<T> {
563563
/// Create a copy-on-write atomically reference counted wrapper
564564
#[inline]
565565
pub fn new(data: T) -> CowArc<T> {
@@ -583,7 +583,7 @@ impl<T:Clone+Send> CowArc<T> {
583583
}
584584
}
585585

586-
impl<T:Clone+Send> Clone for CowArc<T> {
586+
impl<T:Clone+Send+Freeze> Clone for CowArc<T> {
587587
/// Duplicate a Copy-on-write Arc. See arc::clone for more details.
588588
#[inline]
589589
fn clone(&self) -> CowArc<T> {

0 commit comments

Comments
 (0)