File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: ab71c183b9120db520abaf162da8095249f64b02
2
+ refs/heads/master: 800de26372513c12cf735b7dc43791808e5a5ee9
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ fn sha1() -> sha1 {
61
61
work_buf : @~[ mut u32] } ;
62
62
63
63
fn add_input ( st : sha1state , msg : ~[ u8 ] ) {
64
- /* FIXME: Should be typestate precondition (#2345) */
65
64
assert ( !st. computed ) ;
66
65
for vec:: each( msg) |element| {
67
66
st. msg_block [ st. msg_block_idx ] = element;
@@ -78,7 +77,6 @@ fn sha1() -> sha1 {
78
77
}
79
78
}
80
79
fn process_msg_block ( st : sha1state ) {
81
- // FIXME: Make precondition (#2345)
82
80
assert ( vec:: len ( st. h ) == digest_buf_len) ;
83
81
assert ( vec:: len ( * st. work_buf ) == work_buf_len) ;
84
82
let mut t: int ; // Loop counter
@@ -180,7 +178,6 @@ fn sha1() -> sha1 {
180
178
* can be assumed that the message digest has been computed.
181
179
*/
182
180
fn pad_msg ( st : sha1state ) {
183
- // FIXME: Should be a precondition (#2345)
184
181
assert ( vec:: len ( st. msg_block ) == msg_block_len) ;
185
182
186
183
/*
@@ -219,7 +216,6 @@ fn sha1() -> sha1 {
219
216
220
217
impl sha1state : sha1 {
221
218
fn reset ( ) {
222
- // FIXME: Should be typestate precondition (#2345)
223
219
assert ( vec:: len ( self . h ) == digest_buf_len) ;
224
220
self . len_low = 0u32 ;
225
221
self . len_high = 0u32 ;
You can’t perform that action at this time.
0 commit comments