fixup mutability of vec::each, make iter_bytes pure
also, change DVec() to work with imm vectors rather than mut ones
This commit is contained in:
@@ -35,7 +35,7 @@ impl ObsoleteSyntax : cmp::Eq {
|
||||
|
||||
impl ObsoleteSyntax: to_bytes::IterBytes {
|
||||
#[inline(always)]
|
||||
fn iter_bytes(lsb0: bool, f: to_bytes::Cb) {
|
||||
pure fn iter_bytes(lsb0: bool, f: to_bytes::Cb) {
|
||||
(self as uint).iter_bytes(lsb0, f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3556,8 +3556,8 @@ impl parser {
|
||||
}
|
||||
|
||||
{attrs_remaining: attrs,
|
||||
view_items: vec::from_mut(dvec::unwrap(move view_items)),
|
||||
items: vec::from_mut(dvec::unwrap(move items))}
|
||||
view_items: dvec::unwrap(move view_items),
|
||||
items: dvec::unwrap(move items)}
|
||||
}
|
||||
|
||||
// Parses a source module as a crate
|
||||
|
||||
Reference in New Issue
Block a user