librustc: Update the serializer to work properly with INHTWAMA, removing mutable fields in the process
This commit is contained in:
parent
6f2e429041
commit
dc5df61bc1
20 changed files with 5290 additions and 504 deletions
|
@ -420,7 +420,8 @@ mod test {
|
|||
|
||||
#[cfg(test)] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
|
||||
do io::with_str_writer |writer| {
|
||||
val.encode(~std::json::Encoder(writer));
|
||||
let mut encoder = std::json::Encoder(writer);
|
||||
val.encode(&mut encoder);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue