Skip to content

Commit c91f4de

Browse files
committed
---
yaml --- r: 166453 b: refs/heads/snap-stage3 c: d10642e h: refs/heads/master i: 166451: 67979fd v: v3
1 parent ab6792d commit c91f4de

File tree

12 files changed

+26
-18
lines changed

12 files changed

+26
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 18842f89f084c52588fe7cffe07f87bf6e90796a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: adabf4e63d6b1d33b045aa5078b12dec3693c574
4+
refs/heads/snap-stage3: d10642ef0f8976b9fb08500acdff84e3990815fa
55
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/doc/complement-bugreport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ miss out on valid bug reports.
3434
It generally helps our diagnosis to include your specific OS (for example: Mac OS X 10.8.3,
3535
Windows 7, Ubuntu 12.04) and your hardware architecture (for example: i686, x86_64).
3636
It's also helpful to provide the exact version and host by copying the output of
37-
re-running the erroneous rustc command with the `--version=verbose` flag, which will
37+
re-running the erroneous rustc command with the `--version --verbose` flags, which will
3838
produce something like this:
3939

4040
```text

branches/snap-stage3/src/etc/rustup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ install_package() {
441441
install_script="$2"
442442

443443
msg "Extracting ${tarball_name}"
444-
(cd "${CFG_TMP_DIR}" && "${CFG_TAR}" -xvf "${tarball_name}")
444+
(cd "${CFG_TMP_DIR}" && "${CFG_TAR}" -xzf "${tarball_name}")
445445
if [ $? -ne 0 ]; then
446446
rm -Rf "${CFG_TMP_DIR}"
447447
err "failed to unpack installer"

branches/snap-stage3/src/libcollections/ring_buf.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,9 +1295,6 @@ impl<A: PartialEq> PartialEq for RingBuf<A> {
12951295
self.len() == other.len() &&
12961296
self.iter().zip(other.iter()).all(|(a, b)| a.eq(b))
12971297
}
1298-
fn ne(&self, other: &RingBuf<A>) -> bool {
1299-
!self.eq(other)
1300-
}
13011298
}
13021299

13031300
impl<A: Eq> Eq for RingBuf<A> {}

branches/snap-stage3/src/libcollections/vec_map.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ use vec::Vec;
6060
/// months.clear();
6161
/// assert!(months.is_empty());
6262
/// ```
63-
#[deriving(PartialEq, Eq)]
6463
pub struct VecMap<V> {
6564
v: Vec<Option<V>>,
6665
}
@@ -492,6 +491,14 @@ impl<V:Clone> VecMap<V> {
492491
}
493492
}
494493

494+
impl<V: PartialEq> PartialEq for VecMap<V> {
495+
fn eq(&self, other: &VecMap<V>) -> bool {
496+
iter::order::eq(self.iter(), other.iter())
497+
}
498+
}
499+
500+
impl<V: Eq> Eq for VecMap<V> {}
501+
495502
impl<V: PartialOrd> PartialOrd for VecMap<V> {
496503
#[inline]
497504
fn partial_cmp(&self, other: &VecMap<V>) -> Option<Ordering> {
@@ -955,6 +962,10 @@ mod test_map {
955962
assert!(a != b);
956963
assert!(b.insert(5, 19).is_none());
957964
assert!(a == b);
965+
966+
a = VecMap::new();
967+
b = VecMap::with_capacity(1);
968+
assert!(a == b);
958969
}
959970

960971
#[test]

branches/snap-stage3/src/libstd/ascii.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl Ascii {
3939
self.chr
4040
}
4141

42-
/// Deprecated: use `as_byte` isntead.
42+
/// Deprecated: use `as_byte` instead.
4343
#[deprecated = "use as_byte"]
4444
pub fn to_byte(self) -> u8 {
4545
self.as_byte()
@@ -52,7 +52,7 @@ impl Ascii {
5252
self.chr as char
5353
}
5454

55-
/// Deprecated: use `as_char` isntead.
55+
/// Deprecated: use `as_char` instead.
5656
#[deprecated = "use as_char"]
5757
pub fn to_char(self) -> char {
5858
self.as_char()

branches/snap-stage3/src/libstd/comm/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ impl<T: Send> Sender<T> {
547547
/// so it is possible for a send to succeed (the other end is alive), but
548548
/// then the other end could immediately disconnect.
549549
///
550-
/// The purpose of this functionality is to propagate panicks among tasks.
550+
/// The purpose of this functionality is to propagate panics among tasks.
551551
/// If a panic is not desired, then consider using the `send_opt` method
552552
#[experimental = "this function is being considered candidate for removal \
553553
to adhere to the general guidelines of rust"]
@@ -790,7 +790,7 @@ impl<T: Send> Receiver<T> {
790790
///
791791
/// Similar to channels, this method will trigger a task panic if the
792792
/// other end of the channel has hung up (been deallocated). The purpose of
793-
/// this is to propagate panicks among tasks.
793+
/// this is to propagate panics among tasks.
794794
///
795795
/// If a panic is not desired, then there are two options:
796796
///

branches/snap-stage3/src/libstd/io/net/ip.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ impl FromStr for SocketAddr {
383383
/// expected by its `FromStr` implementation or a string like `<host_name>:<port>` pair
384384
/// where `<port>` is a `u16` value.
385385
///
386-
/// For the former, `to_socker_addr_all` returns a vector with a single element corresponding
387-
/// to that socker address.
386+
/// For the former, `to_socket_addr_all` returns a vector with a single element corresponding
387+
/// to that socket address.
388388
///
389389
/// For the latter, it tries to resolve the host name and returns a vector of all IP addresses
390390
/// for the host name, each joined with the port.
@@ -443,7 +443,7 @@ pub trait ToSocketAddr {
443443

444444
/// Converts this object to all available socket address values.
445445
///
446-
/// Some values like host name string naturally corrrespond to multiple IP addresses.
446+
/// Some values like host name string naturally correspond to multiple IP addresses.
447447
/// This method tries to return all available addresses corresponding to this object.
448448
///
449449
/// By default this method delegates to `to_socket_addr` method, creating a singleton

branches/snap-stage3/src/libstd/io/net/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl TcpListener {
319319
/// to this listener. The port allocated can be queried via the
320320
/// `socket_name` function.
321321
///
322-
/// The address type can be any implementor of `ToSocketAddr` trait. See its
322+
/// The address type can be any implementer of `ToSocketAddr` trait. See its
323323
/// documentation for concrete examples.
324324
pub fn bind<A: ToSocketAddr>(addr: A) -> IoResult<TcpListener> {
325325
super::with_addresses(addr, |addr| {

branches/snap-stage3/src/libstd/io/net/udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl UdpSocket {
8282
/// Sends data on the socket to the given address. Returns nothing on
8383
/// success.
8484
///
85-
/// Address type can be any implementor of `ToSocketAddr` trait. See its
85+
/// Address type can be any implementer of `ToSocketAddr` trait. See its
8686
/// documentation for concrete examples.
8787
pub fn send_to<A: ToSocketAddr>(&mut self, buf: &[u8], addr: A) -> IoResult<()> {
8888
super::with_addresses(addr, |addr| self.inner.send_to(buf, addr))

branches/snap-stage3/src/libstd/sync/rwlock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub struct RWLock<T> {
6060
data: UnsafeCell<T>,
6161
}
6262

63-
/// Structure representing a staticaly allocated RWLock.
63+
/// Structure representing a statically allocated RWLock.
6464
///
6565
/// This structure is intended to be used inside of a `static` and will provide
6666
/// automatic global access as well as lazy initialization. The internal

branches/snap-stage3/src/libstd/thread_local/scoped.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//!
1818
//! There are no restrictions on what types can be placed into a scoped
1919
//! variable, but all scoped variables are initialized to the equivalent of
20-
//! null. Scoped thread local stor is useful when a value is present for a known
20+
//! null. Scoped thread local storage is useful when a value is present for a known
2121
//! period of time and it is not required to relinquish ownership of the
2222
//! contents.
2323
//!

0 commit comments

Comments
 (0)