Skip to content

Commit 7c05658

Browse files
committed
---
yaml --- r: 149551 b: refs/heads/try2 c: 848cbb4 h: refs/heads/master i: 149549: a7c7536 149547: c129bf4 149543: 4a17399 149535: 17cf438 v: v3
1 parent 7ceb919 commit 7c05658

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
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: f12ff1964b3040c426263d52472a9ed503c6a4aa
8+
refs/heads/try2: 848cbb4e130d7ec9609b36b3f6f7a68099cbd6a7
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/ascii.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ use str::OwnedStr;
1818
use container::Container;
1919
use cast;
2020
use fmt;
21-
use hash::{Hash, sip};
2221
use iter::Iterator;
2322
use vec::{ImmutableVector, MutableVector, Vector};
2423
use option::{Option, Some, None};
2524

2625
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
27-
#[deriving(Clone, Eq, Ord, TotalOrd, TotalEq)]
26+
#[deriving(Clone, Eq, Ord, TotalOrd, TotalEq, Hash)]
2827
pub struct Ascii { priv chr: u8 }
2928

3029
impl Ascii {
@@ -306,13 +305,6 @@ impl IntoStr for ~[Ascii] {
306305
}
307306
}
308307

309-
impl Hash for Ascii {
310-
#[inline]
311-
fn hash(&self, s: &mut sip::SipState) {
312-
self.to_byte().hash(s)
313-
}
314-
}
315-
316308
/// Trait to convert to an owned byte array by consuming self
317309
pub trait IntoBytes {
318310
/// Converts to an owned byte array by consuming self

branches/try2/src/libsyntax/abi.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::hash::{Hash, sip};
1211
use std::fmt;
1312
use std::fmt::Show;
1413

1514
#[deriving(Eq)]
1615
pub enum Os { OsWin32, OsMacos, OsLinux, OsAndroid, OsFreebsd, }
1716

18-
#[deriving(Eq)]
17+
#[deriving(Eq, Hash)]
1918
pub enum Abi {
2019
// NB: This ordering MUST match the AbiDatas array below.
2120
// (This is ensured by the test indices_are_correct().)
@@ -267,12 +266,6 @@ impl AbiSet {
267266
}
268267
}
269268

270-
impl Hash for Abi {
271-
fn hash(&self, s: &mut sip::SipState) {
272-
self.index().hash(s)
273-
}
274-
}
275-
276269
impl fmt::Show for Abi {
277270
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
278271
self.data().name.fmt(f)

0 commit comments

Comments
 (0)