Skip to content

Commit

Permalink
libcollections: impl Send/Sync for Vec.
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed Dec 29, 2014
1 parent 0e039ad commit 766a719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcollections/vec.rs
Expand Up @@ -139,6 +139,9 @@ pub struct Vec<T> {
cap: uint,
}

unsafe impl<T: Send> Send for Vec<T> { }
unsafe impl<T: Sync> Sync for Vec<T> { }

/// A clone-on-write vector
pub type CowVec<'a, T> = Cow<'a, Vec<T>, [T]>;

Expand Down

22 comments on commit 766a719

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nikomatsakis
at luqmana@766a719

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging luqmana/rust/nonzero-lang-item = 766a719 into auto

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: {"merge_sha": "41bdc6af13e15129a50cb6d71bc81875a53b8007"}

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luqmana/rust/nonzero-lang-item = 766a719 merged ok, testing candidate = 41bdc6af

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nikomatsakis
at luqmana@766a719

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging luqmana/rust/nonzero-lang-item = 766a719 into auto

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: {"merge_sha": "51beb24882e2e43cad950b1cd9e45c19ecd6c32d"}

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luqmana/rust/nonzero-lang-item = 766a719 merged ok, testing candidate = 51beb248

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nikomatsakis
at luqmana@766a719

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging luqmana/rust/nonzero-lang-item = 766a719 into auto

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: {"merge_sha": "144e9ec915d39e5fa0fa196d6e62de86222cc5f8"}

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luqmana/rust/nonzero-lang-item = 766a719 merged ok, testing candidate = 144e9ec9

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nikomatsakis
at luqmana@766a719

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging luqmana/rust/nonzero-lang-item = 766a719 into auto

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: {"merge_sha": "25fb12b8a5411901675ede6b147bbc6c0b7437b7"}

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luqmana/rust/nonzero-lang-item = 766a719 merged ok, testing candidate = 25fb12b

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 25fb12b

@bors
Copy link
Contributor

@bors bors commented on 766a719 Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 25fb12b

Please sign in to comment.