RIMOV, round 6.

This gets rid of `mut` inside bare vectors. It's going to cause some
problems later.
This commit is contained in:
Ben Striegel 2013-01-29 21:43:49 -05:00
parent 610fd6bc93
commit 1c9b5a83b2
3 changed files with 6 additions and 6 deletions

View File

@ -169,7 +169,7 @@ struct SipState {
mut v1: u64,
mut v2: u64,
mut v3: u64,
tail: [mut u8 * 8], // unprocessed bytes
mut tail: [u8 * 8], // unprocessed bytes
mut ntail: uint, // how many bytes in tail are valid
}
@ -183,7 +183,7 @@ fn SipState(key0: u64, key1: u64) -> SipState {
mut v1 : 0u64,
mut v2 : 0u64,
mut v3 : 0u64,
tail : [mut 0u8,0,0,0,0,0,0,0],
mut tail : [0u8,0,0,0,0,0,0,0],
mut ntail : 0u,
};
(&state).reset();

View File

@ -1237,7 +1237,7 @@ impl RegionVarBindings {
classification: Contracting,
span: self.var_spans[var_idx],
value: NoValue,
head_edge: [mut uint::max_value, uint::max_value]
head_edge: [uint::max_value, uint::max_value]
}
});
@ -1245,7 +1245,7 @@ impl RegionVarBindings {
let mut edges = vec::with_capacity(num_edges);
for self.constraints.each_ref |constraint, span| {
edges.push(GraphEdge {
next_edge: [mut uint::max_value, uint::max_value],
next_edge: [uint::max_value, uint::max_value],
constraint: *constraint,
span: *span
});

View File

@ -193,7 +193,7 @@ pub fn Parser(sess: parse_sess,
token: tok0.tok,
span: span0,
last_span: span0,
buffer: [mut {tok: tok0.tok, sp: span0}, ..4],
mut buffer: [{tok: tok0.tok, sp: span0}, ..4],
buffer_start: 0,
buffer_end: 0,
tokens_consumed: 0u,
@ -213,7 +213,7 @@ pub struct Parser {
mut token: token::Token,
mut span: span,
mut last_span: span,
mut buffer: [mut {tok: token::Token, sp: span} * 4],
mut buffer: [{tok: token::Token, sp: span} * 4],
mut buffer_start: int,
mut buffer_end: int,
mut tokens_consumed: uint,