File tree Expand file tree Collapse file tree 12 files changed +26
-18
lines changed Expand file tree Collapse file tree 12 files changed +26
-18
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 18842f89f084c52588fe7cffe07f87bf6e90796a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: adabf4e63d6b1d33b045aa5078b12dec3693c574
4
+ refs/heads/snap-stage3: d10642ef0f8976b9fb08500acdff84e3990815fa
5
5
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ miss out on valid bug reports.
34
34
It generally helps our diagnosis to include your specific OS (for example: Mac OS X 10.8.3,
35
35
Windows 7, Ubuntu 12.04) and your hardware architecture (for example: i686, x86_64).
36
36
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
38
38
produce something like this:
39
39
40
40
``` text
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ install_package() {
441
441
install_script=" $2 "
442
442
443
443
msg " Extracting ${tarball_name} "
444
- (cd " ${CFG_TMP_DIR} " && " ${CFG_TAR} " -xvf " ${tarball_name} " )
444
+ (cd " ${CFG_TMP_DIR} " && " ${CFG_TAR} " -xzf " ${tarball_name} " )
445
445
if [ $? -ne 0 ]; then
446
446
rm -Rf " ${CFG_TMP_DIR} "
447
447
err " failed to unpack installer"
Original file line number Diff line number Diff line change @@ -1295,9 +1295,6 @@ impl<A: PartialEq> PartialEq for RingBuf<A> {
1295
1295
self . len ( ) == other. len ( ) &&
1296
1296
self . iter ( ) . zip ( other. iter ( ) ) . all ( |( a, b) | a. eq ( b) )
1297
1297
}
1298
- fn ne ( & self , other : & RingBuf < A > ) -> bool {
1299
- !self . eq ( other)
1300
- }
1301
1298
}
1302
1299
1303
1300
impl < A : Eq > Eq for RingBuf < A > { }
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ use vec::Vec;
60
60
/// months.clear();
61
61
/// assert!(months.is_empty());
62
62
/// ```
63
- #[ deriving( PartialEq , Eq ) ]
64
63
pub struct VecMap < V > {
65
64
v : Vec < Option < V > > ,
66
65
}
@@ -492,6 +491,14 @@ impl<V:Clone> VecMap<V> {
492
491
}
493
492
}
494
493
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
+
495
502
impl < V : PartialOrd > PartialOrd for VecMap < V > {
496
503
#[ inline]
497
504
fn partial_cmp ( & self , other : & VecMap < V > ) -> Option < Ordering > {
@@ -955,6 +962,10 @@ mod test_map {
955
962
assert ! ( a != b) ;
956
963
assert ! ( b. insert( 5 , 19 ) . is_none( ) ) ;
957
964
assert ! ( a == b) ;
965
+
966
+ a = VecMap :: new ( ) ;
967
+ b = VecMap :: with_capacity ( 1 ) ;
968
+ assert ! ( a == b) ;
958
969
}
959
970
960
971
#[ test]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl Ascii {
39
39
self . chr
40
40
}
41
41
42
- /// Deprecated: use `as_byte` isntead .
42
+ /// Deprecated: use `as_byte` instead .
43
43
#[ deprecated = "use as_byte" ]
44
44
pub fn to_byte ( self ) -> u8 {
45
45
self . as_byte ( )
@@ -52,7 +52,7 @@ impl Ascii {
52
52
self . chr as char
53
53
}
54
54
55
- /// Deprecated: use `as_char` isntead .
55
+ /// Deprecated: use `as_char` instead .
56
56
#[ deprecated = "use as_char" ]
57
57
pub fn to_char ( self ) -> char {
58
58
self . as_char ( )
Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ impl<T: Send> Sender<T> {
547
547
/// so it is possible for a send to succeed (the other end is alive), but
548
548
/// then the other end could immediately disconnect.
549
549
///
550
- /// The purpose of this functionality is to propagate panicks among tasks.
550
+ /// The purpose of this functionality is to propagate panics among tasks.
551
551
/// If a panic is not desired, then consider using the `send_opt` method
552
552
#[ experimental = "this function is being considered candidate for removal \
553
553
to adhere to the general guidelines of rust"]
@@ -790,7 +790,7 @@ impl<T: Send> Receiver<T> {
790
790
///
791
791
/// Similar to channels, this method will trigger a task panic if the
792
792
/// 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.
794
794
///
795
795
/// If a panic is not desired, then there are two options:
796
796
///
Original file line number Diff line number Diff line change @@ -383,8 +383,8 @@ impl FromStr for SocketAddr {
383
383
/// expected by its `FromStr` implementation or a string like `<host_name>:<port>` pair
384
384
/// where `<port>` is a `u16` value.
385
385
///
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.
388
388
///
389
389
/// For the latter, it tries to resolve the host name and returns a vector of all IP addresses
390
390
/// for the host name, each joined with the port.
@@ -443,7 +443,7 @@ pub trait ToSocketAddr {
443
443
444
444
/// Converts this object to all available socket address values.
445
445
///
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.
447
447
/// This method tries to return all available addresses corresponding to this object.
448
448
///
449
449
/// By default this method delegates to `to_socket_addr` method, creating a singleton
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ impl TcpListener {
319
319
/// to this listener. The port allocated can be queried via the
320
320
/// `socket_name` function.
321
321
///
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
323
323
/// documentation for concrete examples.
324
324
pub fn bind < A : ToSocketAddr > ( addr : A ) -> IoResult < TcpListener > {
325
325
super :: with_addresses ( addr, |addr| {
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ impl UdpSocket {
82
82
/// Sends data on the socket to the given address. Returns nothing on
83
83
/// success.
84
84
///
85
- /// Address type can be any implementor of `ToSocketAddr` trait. See its
85
+ /// Address type can be any implementer of `ToSocketAddr` trait. See its
86
86
/// documentation for concrete examples.
87
87
pub fn send_to < A : ToSocketAddr > ( & mut self , buf : & [ u8 ] , addr : A ) -> IoResult < ( ) > {
88
88
super :: with_addresses ( addr, |addr| self . inner . send_to ( buf, addr) )
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub struct RWLock<T> {
60
60
data : UnsafeCell < T > ,
61
61
}
62
62
63
- /// Structure representing a staticaly allocated RWLock.
63
+ /// Structure representing a statically allocated RWLock.
64
64
///
65
65
/// This structure is intended to be used inside of a `static` and will provide
66
66
/// automatic global access as well as lazy initialization. The internal
Original file line number Diff line number Diff line change 17
17
//!
18
18
//! There are no restrictions on what types can be placed into a scoped
19
19
//! 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
21
21
//! period of time and it is not required to relinquish ownership of the
22
22
//! contents.
23
23
//!
You can’t perform that action at this time.
0 commit comments