Skip to content

Commit 91faae3

Browse files
author
Branimir
committed
---
yaml --- r: 82680 b: refs/heads/auto c: a4b7474 h: refs/heads/master v: v3
1 parent 7fb82f7 commit 91faae3

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 0f9bcaf7fe0cebf0d1be0e17025c0e3b76e14507
16+
refs/heads/auto: a4b7474461f5ea96eb895adef7f17a079b42bad5
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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,

branches/auto/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

branches/auto/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

branches/auto/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)