Skip to content

Commit ca49110

Browse files
author
Branimir
committed
---
yaml --- r: 81912 b: refs/heads/master c: a4b7474 h: refs/heads/master v: v3
1 parent d9e73dd commit ca49110

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0f9bcaf7fe0cebf0d1be0e17025c0e3b76e14507
2+
refs/heads/master: a4b7474461f5ea96eb895adef7f17a079b42bad5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/libextra/crypto/md5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static C4: [u32, ..16] = [
156156

157157

158158
/// The MD5 Digest algorithm
159-
pub struct Md5 {
159+
struct Md5 {
160160
priv length_bytes: u64,
161161
priv buffer: FixedBuffer64,
162162
priv state: Md5State,

trunk/src/libextra/crypto/sha2.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ impl Engine512 {
230230
}
231231

232232

233-
/// The SHA-512 hash algorithm
234-
pub struct Sha512 {
233+
struct Sha512 {
235234
priv engine: Engine512
236235
}
237236

@@ -283,8 +282,7 @@ static H512: [u64, ..8] = [
283282
];
284283

285284

286-
/// The SHA-384 hash algorithm
287-
pub struct Sha384 {
285+
struct Sha384 {
288286
priv engine: Engine512
289287
}
290288

@@ -334,8 +332,7 @@ static H384: [u64, ..8] = [
334332
];
335333

336334

337-
/// The SHA-512 hash algorithm with digest truncated to 256 bits
338-
pub struct Sha512Trunc256 {
335+
struct Sha512Trunc256 {
339336
priv engine: Engine512
340337
}
341338

@@ -383,8 +380,7 @@ static H512_TRUNC_256: [u64, ..8] = [
383380
];
384381

385382

386-
/// The SHA-512 hash algorithm with digest truncated to 224 bits
387-
pub struct Sha512Trunc224 {
383+
struct Sha512Trunc224 {
388384
priv engine: Engine512
389385
}
390386

@@ -639,8 +635,7 @@ impl Engine256 {
639635
}
640636

641637

642-
/// The SHA-256 hash algorithm
643-
pub struct Sha256 {
638+
struct Sha256 {
644639
priv engine: Engine256
645640
}
646641

@@ -692,8 +687,7 @@ static H256: [u32, ..8] = [
692687
];
693688

694689

695-
/// The SHA-224 hash algorithm
696-
pub struct Sha224 {
690+
struct Sha224 {
697691
priv engine: Engine256
698692
}
699693

trunk/src/librustc/middle/typeck/check/method.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ impl<'self> LookupContext<'self> {
431431

432432
Candidate {
433433
rcvr_match_condition: RcvrMatchesIfObject(did),
434-
rcvr_substs: trait_ref.substs.clone(),
434+
rcvr_substs: new_trait_ref.substs.clone(),
435435
method_ty: m,
436436
origin: method_object(method_object {
437-
trait_id: trait_ref.def_id,
437+
trait_id: new_trait_ref.def_id,
438438
object_trait_id: did,
439439
method_num: method_num,
440440
real_index: vtable_index

trunk/src/test/run-pass/issue-9394-inherited-trait-calls.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
trait Base: Base2 + Base3{
1212
fn foo(&self) -> ~str;
13+
fn foo1(&self) -> ~str;
14+
fn foo2(&self) -> ~str{
15+
~"base foo2"
16+
}
1317
}
1418

1519
trait Base2: Base3{
@@ -30,6 +34,9 @@ impl Base for X {
3034
fn foo(&self) -> ~str{
3135
~"base foo"
3236
}
37+
fn foo1(&self) -> ~str{
38+
~"base foo1"
39+
}
3340

3441
}
3542

@@ -56,6 +63,8 @@ pub fn main() {
5663
let s = &n as &Super;
5764
assert_eq!(s.bar(),~"super bar");
5865
assert_eq!(s.foo(),~"base foo");
66+
assert_eq!(s.foo1(),~"base foo1");
67+
assert_eq!(s.foo2(),~"base foo2");
5968
assert_eq!(s.baz(),~"base2 baz");
6069
assert_eq!(s.root(),~"base3 root");
6170
}

0 commit comments

Comments
 (0)