File tree Expand file tree Collapse file tree 6 files changed +1
-14
lines changed Expand file tree Collapse file tree 6 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: b8d1fa399402c71331aefd634d710004e00b73a6
9
+ refs/heads/dist-snap: 78c5f97a09e7478181c9e4922dea0d4436a590c9
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ use middle::typeck;
26
26
use middle:: astencode:: vtable_decoder_helpers;
27
27
28
28
29
- use std:: hash:: HashUtil ;
30
29
use std:: u64;
31
30
use std:: io:: WriterUtil ;
32
31
use std:: io;
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ use middle::typeck;
21
21
use middle:: astencode;
22
22
use middle;
23
23
24
- use std:: hash:: HashUtil ;
25
24
use std:: hashmap:: { HashMap , HashSet } ;
26
25
use std:: io;
27
26
use std:: str;
Original file line number Diff line number Diff line change @@ -59,14 +59,7 @@ pub trait Hash {
59
59
* IterBytes trait, that feeds SipHash.
60
60
*/
61
61
fn hash_keyed ( & self , k0 : u64 , k1 : u64 ) -> u64 ;
62
- }
63
-
64
- // When we have default methods, won't need this.
65
- pub trait HashUtil {
66
- fn hash ( & self ) -> u64 ;
67
- }
68
62
69
- impl < A : Hash > HashUtil for A {
70
63
#[ inline]
71
64
fn hash ( & self ) -> u64 { self . hash_keyed ( 0 , 0 ) }
72
65
}
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ struct Foo {
19
19
}
20
20
21
21
pub fn main ( ) {
22
- use std:: hash:: HashUtil ; // necessary for IterBytes check
23
-
24
22
let a = Foo { bar : 4 , baz : -3 } ;
25
23
26
24
a == a; // check for Eq impl w/o testing its correctness
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ struct Foo {
17
17
}
18
18
19
19
pub fn main ( ) {
20
- use std:: hash:: HashUtil ; // necessary for IterBytes check
21
-
22
20
let a = Foo { bar : 4 , baz : -3 } ;
23
21
24
22
a == a; // check for Eq impl w/o testing its correctness
You can’t perform that action at this time.
0 commit comments