Skip to content

Commit 3e22d8d

Browse files
committed
---
yaml --- r: 27679 b: refs/heads/try c: 800de26 h: refs/heads/master i: 27677: e7863fa 27675: 18d65dd 27671: 4588b1b 27663: 13e6784 27647: 180fd6d v: v3
1 parent c3f8c52 commit 3e22d8d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: ab71c183b9120db520abaf162da8095249f64b02
5+
refs/heads/try: 800de26372513c12cf735b7dc43791808e5a5ee9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/libstd/sha1.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ fn sha1() -> sha1 {
6161
work_buf: @~[mut u32]};
6262

6363
fn add_input(st: sha1state, msg: ~[u8]) {
64-
/* FIXME: Should be typestate precondition (#2345) */
6564
assert (!st.computed);
6665
for vec::each(msg) |element| {
6766
st.msg_block[st.msg_block_idx] = element;
@@ -78,7 +77,6 @@ fn sha1() -> sha1 {
7877
}
7978
}
8079
fn process_msg_block(st: sha1state) {
81-
// FIXME: Make precondition (#2345)
8280
assert (vec::len(st.h) == digest_buf_len);
8381
assert (vec::len(*st.work_buf) == work_buf_len);
8482
let mut t: int; // Loop counter
@@ -180,7 +178,6 @@ fn sha1() -> sha1 {
180178
* can be assumed that the message digest has been computed.
181179
*/
182180
fn pad_msg(st: sha1state) {
183-
// FIXME: Should be a precondition (#2345)
184181
assert (vec::len(st.msg_block) == msg_block_len);
185182

186183
/*
@@ -219,7 +216,6 @@ fn sha1() -> sha1 {
219216

220217
impl sha1state: sha1 {
221218
fn reset() {
222-
// FIXME: Should be typestate precondition (#2345)
223219
assert (vec::len(self.h) == digest_buf_len);
224220
self.len_low = 0u32;
225221
self.len_high = 0u32;

0 commit comments

Comments
 (0)