File tree Expand file tree Collapse file tree 5 files changed +19
-16
lines changed
librustc/middle/typeck/check Expand file tree Collapse file tree 5 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0f9bcaf7fe0cebf0d1be0e17025c0e3b76e14507
2
+ refs/heads/master: a4b7474461f5ea96eb895adef7f17a079b42bad5
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5
5
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ static C4: [u32, ..16] = [
156
156
157
157
158
158
/// The MD5 Digest algorithm
159
- pub struct Md5 {
159
+ struct Md5 {
160
160
priv length_bytes : u64 ,
161
161
priv buffer : FixedBuffer64 ,
162
162
priv state : Md5State ,
Original file line number Diff line number Diff line change @@ -230,8 +230,7 @@ impl Engine512 {
230
230
}
231
231
232
232
233
- /// The SHA-512 hash algorithm
234
- pub struct Sha512 {
233
+ struct Sha512 {
235
234
priv engine: Engine512
236
235
}
237
236
@@ -283,8 +282,7 @@ static H512: [u64, ..8] = [
283
282
] ;
284
283
285
284
286
- /// The SHA-384 hash algorithm
287
- pub struct Sha384 {
285
+ struct Sha384 {
288
286
priv engine: Engine512
289
287
}
290
288
@@ -334,8 +332,7 @@ static H384: [u64, ..8] = [
334
332
] ;
335
333
336
334
337
- /// The SHA-512 hash algorithm with digest truncated to 256 bits
338
- pub struct Sha512Trunc256 {
335
+ struct Sha512Trunc256 {
339
336
priv engine: Engine512
340
337
}
341
338
@@ -383,8 +380,7 @@ static H512_TRUNC_256: [u64, ..8] = [
383
380
] ;
384
381
385
382
386
- /// The SHA-512 hash algorithm with digest truncated to 224 bits
387
- pub struct Sha512Trunc224 {
383
+ struct Sha512Trunc224 {
388
384
priv engine: Engine512
389
385
}
390
386
@@ -639,8 +635,7 @@ impl Engine256 {
639
635
}
640
636
641
637
642
- /// The SHA-256 hash algorithm
643
- pub struct Sha256 {
638
+ struct Sha256 {
644
639
priv engine: Engine256
645
640
}
646
641
@@ -692,8 +687,7 @@ static H256: [u32, ..8] = [
692
687
] ;
693
688
694
689
695
- /// The SHA-224 hash algorithm
696
- pub struct Sha224 {
690
+ struct Sha224 {
697
691
priv engine: Engine256
698
692
}
699
693
Original file line number Diff line number Diff line change @@ -431,10 +431,10 @@ impl<'self> LookupContext<'self> {
431
431
432
432
Candidate {
433
433
rcvr_match_condition : RcvrMatchesIfObject ( did) ,
434
- rcvr_substs : trait_ref . substs . clone ( ) ,
434
+ rcvr_substs : new_trait_ref . substs . clone ( ) ,
435
435
method_ty : m,
436
436
origin : method_object ( method_object {
437
- trait_id : trait_ref . def_id ,
437
+ trait_id : new_trait_ref . def_id ,
438
438
object_trait_id : did,
439
439
method_num : method_num,
440
440
real_index : vtable_index
Original file line number Diff line number Diff line change 10
10
11
11
trait Base : Base2 + Base3 {
12
12
fn foo ( & self ) -> ~str ;
13
+ fn foo1 ( & self ) -> ~str ;
14
+ fn foo2 ( & self ) -> ~str {
15
+ ~"base foo2"
16
+ }
13
17
}
14
18
15
19
trait Base2 : Base3 {
@@ -30,6 +34,9 @@ impl Base for X {
30
34
fn foo ( & self ) -> ~str {
31
35
~"base foo"
32
36
}
37
+ fn foo1 ( & self ) -> ~str {
38
+ ~"base foo1"
39
+ }
33
40
34
41
}
35
42
@@ -56,6 +63,8 @@ pub fn main() {
56
63
let s = & n as & Super ;
57
64
assert_eq ! ( s. bar( ) , ~"super bar");
58
65
assert_eq!(s.foo(),~" base foo");
66
+ assert_eq!(s.foo1(),~" base foo1");
67
+ assert_eq!(s.foo2(),~" base foo2");
59
68
assert_eq!(s.baz(),~" base2 baz");
60
69
assert_eq!(s.root(),~" base3 root" ) ;
61
70
}
You can’t perform that action at this time.
0 commit comments