diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-12 10:38:17 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-12 13:29:31 -0700 |
| commit | 5d540de76993eb6dac9893138e45d0324c23e631 (patch) | |
| tree | 067007dea6fa0428c80b913a10730ab3323a40f0 /src/libsyntax/parse/parser.rs | |
| parent | 8fbe4b58412b2818d4ef3d92259bdf5f88f61606 (diff) | |
| download | rust-5d540de76993eb6dac9893138e45d0324c23e631.tar.gz rust-5d540de76993eb6dac9893138e45d0324c23e631.zip | |
fixup mutability of vec::each, make iter_bytes pure
also, change DVec() to work with imm vectors rather than mut ones
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b8d55fb1055..1089431d810 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 |
