File tree Expand file tree Collapse file tree 7 files changed +20
-23
lines changed
librustc/middle/typeck/check Expand file tree Collapse file tree 7 files changed +20
-23
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a4b7474461f5ea96eb895adef7f17a079b42bad5
2
+ refs/heads/master: 6f991a24419b4d1f2c4a9d764e07777b6fb317f7
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
- struct Md5 {
159
+ pub 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,7 +230,8 @@ impl Engine512 {
230
230
}
231
231
232
232
233
- struct Sha512 {
233
+ /// The SHA-512 hash algorithm
234
+ pub struct Sha512 {
234
235
priv engine: Engine512
235
236
}
236
237
@@ -282,7 +283,8 @@ static H512: [u64, ..8] = [
282
283
] ;
283
284
284
285
285
- struct Sha384 {
286
+ /// The SHA-384 hash algorithm
287
+ pub struct Sha384 {
286
288
priv engine: Engine512
287
289
}
288
290
@@ -332,7 +334,8 @@ static H384: [u64, ..8] = [
332
334
] ;
333
335
334
336
335
- struct Sha512Trunc256 {
337
+ /// The SHA-512 hash algorithm with digest truncated to 256 bits
338
+ pub struct Sha512Trunc256 {
336
339
priv engine: Engine512
337
340
}
338
341
@@ -380,7 +383,8 @@ static H512_TRUNC_256: [u64, ..8] = [
380
383
] ;
381
384
382
385
383
- struct Sha512Trunc224 {
386
+ /// The SHA-512 hash algorithm with digest truncated to 224 bits
387
+ pub struct Sha512Trunc224 {
384
388
priv engine: Engine512
385
389
}
386
390
@@ -635,7 +639,8 @@ impl Engine256 {
635
639
}
636
640
637
641
638
- struct Sha256 {
642
+ /// The SHA-256 hash algorithm
643
+ pub struct Sha256 {
639
644
priv engine: Engine256
640
645
}
641
646
@@ -687,7 +692,8 @@ static H256: [u32, ..8] = [
687
692
] ;
688
693
689
694
690
- struct Sha224 {
695
+ /// The SHA-224 hash algorithm
696
+ pub struct Sha224 {
691
697
priv engine: Engine256
692
698
}
693
699
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use std::to_bytes;
21
21
use std:: uint;
22
22
23
23
#[ deriving( Clone , Eq ) ]
24
- struct Url {
24
+ pub struct Url {
25
25
scheme : ~str ,
26
26
user : Option < UserInfo > ,
27
27
host : ~str ,
@@ -32,7 +32,7 @@ struct Url {
32
32
}
33
33
34
34
#[ deriving( Clone , Eq ) ]
35
- struct UserInfo {
35
+ pub struct UserInfo {
36
36
user : ~str ,
37
37
pass : Option < ~str >
38
38
}
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 : new_trait_ref . substs . clone ( ) ,
434
+ rcvr_substs : trait_ref . substs . clone ( ) ,
435
435
method_ty : m,
436
436
origin : method_object ( method_object {
437
- trait_id : new_trait_ref . def_id ,
437
+ trait_id : 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 @@ -128,7 +128,7 @@ impl Decorator<~[u8]> for MemReader {
128
128
129
129
130
130
/// Writes to a fixed-size byte slice
131
- struct BufWriter < ' self > {
131
+ pub struct BufWriter < ' self > {
132
132
buf : & ' self mut [ u8 ] ,
133
133
pos : uint
134
134
}
@@ -156,7 +156,7 @@ impl<'self> Seek for BufWriter<'self> {
156
156
157
157
158
158
/// Reads from a fixed-size byte slice
159
- struct BufReader < ' self > {
159
+ pub struct BufReader < ' self > {
160
160
buf : & ' self [ u8 ] ,
161
161
pos : uint
162
162
}
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
- }
17
13
}
18
14
19
15
trait Base2 : Base3 {
@@ -34,9 +30,6 @@ impl Base for X {
34
30
fn foo ( & self ) -> ~str {
35
31
~"base foo"
36
32
}
37
- fn foo1 ( & self ) -> ~str {
38
- ~"base foo1"
39
- }
40
33
41
34
}
42
35
@@ -63,8 +56,6 @@ pub fn main() {
63
56
let s = & n as & Super ;
64
57
assert_eq ! ( s. bar( ) , ~"super bar");
65
58
assert_eq!(s.foo(),~" base foo");
66
- assert_eq!(s.foo1(),~" base foo1");
67
- assert_eq!(s.foo2(),~" base foo2");
68
59
assert_eq!(s.baz(),~" base2 baz");
69
60
assert_eq!(s.root(),~" base3 root" ) ;
70
61
}
You can’t perform that action at this time.
0 commit comments