Skip to content

Commit 83d9ebd

Browse files
committed
---
yaml --- r: 81913 b: refs/heads/master c: 6f991a2 h: refs/heads/master i: 81911: d9e73dd v: v3
1 parent ca49110 commit 83d9ebd

File tree

7 files changed

+20
-23
lines changed

7 files changed

+20
-23
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: a4b7474461f5ea96eb895adef7f17a079b42bad5
2+
refs/heads/master: 6f991a24419b4d1f2c4a9d764e07777b6fb317f7
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-
struct Md5 {
159+
pub struct Md5 {
160160
priv length_bytes: u64,
161161
priv buffer: FixedBuffer64,
162162
priv state: Md5State,

trunk/src/libextra/crypto/sha2.rs

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

232232

233-
struct Sha512 {
233+
/// The SHA-512 hash algorithm
234+
pub struct Sha512 {
234235
priv engine: Engine512
235236
}
236237

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

284285

285-
struct Sha384 {
286+
/// The SHA-384 hash algorithm
287+
pub struct Sha384 {
286288
priv engine: Engine512
287289
}
288290

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

334336

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

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

382385

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

@@ -635,7 +639,8 @@ impl Engine256 {
635639
}
636640

637641

638-
struct Sha256 {
642+
/// The SHA-256 hash algorithm
643+
pub struct Sha256 {
639644
priv engine: Engine256
640645
}
641646

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

689694

690-
struct Sha224 {
695+
/// The SHA-224 hash algorithm
696+
pub struct Sha224 {
691697
priv engine: Engine256
692698
}
693699

trunk/src/libextra/url.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::to_bytes;
2121
use std::uint;
2222

2323
#[deriving(Clone, Eq)]
24-
struct Url {
24+
pub struct Url {
2525
scheme: ~str,
2626
user: Option<UserInfo>,
2727
host: ~str,
@@ -32,7 +32,7 @@ struct Url {
3232
}
3333

3434
#[deriving(Clone, Eq)]
35-
struct UserInfo {
35+
pub struct UserInfo {
3636
user: ~str,
3737
pass: Option<~str>
3838
}

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: new_trait_ref.substs.clone(),
434+
rcvr_substs: trait_ref.substs.clone(),
435435
method_ty: m,
436436
origin: method_object(method_object {
437-
trait_id: new_trait_ref.def_id,
437+
trait_id: trait_ref.def_id,
438438
object_trait_id: did,
439439
method_num: method_num,
440440
real_index: vtable_index

trunk/src/libstd/rt/io/mem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Decorator<~[u8]> for MemReader {
128128

129129

130130
/// Writes to a fixed-size byte slice
131-
struct BufWriter<'self> {
131+
pub struct BufWriter<'self> {
132132
buf: &'self mut [u8],
133133
pos: uint
134134
}
@@ -156,7 +156,7 @@ impl<'self> Seek for BufWriter<'self> {
156156

157157

158158
/// Reads from a fixed-size byte slice
159-
struct BufReader<'self> {
159+
pub struct BufReader<'self> {
160160
buf: &'self [u8],
161161
pos: uint
162162
}

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
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-
}
1713
}
1814

1915
trait Base2: Base3{
@@ -34,9 +30,6 @@ impl Base for X {
3430
fn foo(&self) -> ~str{
3531
~"base foo"
3632
}
37-
fn foo1(&self) -> ~str{
38-
~"base foo1"
39-
}
4033

4134
}
4235

@@ -63,8 +56,6 @@ pub fn main() {
6356
let s = &n as &Super;
6457
assert_eq!(s.bar(),~"super bar");
6558
assert_eq!(s.foo(),~"base foo");
66-
assert_eq!(s.foo1(),~"base foo1");
67-
assert_eq!(s.foo2(),~"base foo2");
6859
assert_eq!(s.baz(),~"base2 baz");
6960
assert_eq!(s.root(),~"base3 root");
7061
}

0 commit comments

Comments
 (0)