Skip to content

Commit

Permalink
auto merge of #5279 : alexcrichton/rust/no-dvec, r=pcwalton
Browse files Browse the repository at this point in the history
Closes #4985 by removing the `dvec` module and all use cases throughout the compiler.

A number of uses were directly convertible to `let mut foo = ~[];`, while others in hash maps and some fields had to be converted to `@mut ~[T]`. A small number of `DVec` instances in fields were able to be converted directly to `~[T]` without the `@`, but this was a difficult thing to do.
  • Loading branch information
bors committed Mar 8, 2013
2 parents 647a94d + 62651df commit 3bbcac3
Show file tree
Hide file tree
Showing 41 changed files with 327 additions and 902 deletions.
11 changes: 4 additions & 7 deletions src/libcore/core.rc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ used features.
the floating point types, the `bool` type, tuples, characters, strings,
vectors (`vec`), managed boxes (`managed`), owned boxes (`owned`), and unsafe
and borrowed pointers (`ptr`). Additionally, `core` provides task management
and creation (`task`), communication primitives (`comm` and `pipes`), an
efficient vector builder (`dvec`), platform abstractions (`os` and `path`),
basic I/O abstractions (`io`), common traits (`cmp`, `num`, `to_str`), and
complete bindings to the C standard library (`libc`).
and creation (`task`), communication primitives (`comm` and `pipes`), platform
abstractions (`os` and `path`), basic I/O abstractions (`io`), common traits
(`cmp`, `num`, `to_str`), and complete bindings to the C standard library
(`libc`).

`core` is linked to all crates by default and its contents imported.
Implicitly, all crates behave as if they included the following prologue:
Expand Down Expand Up @@ -141,9 +141,6 @@ pub mod container;
pub mod option;
pub mod result;
pub mod either;
pub mod dvec;
#[path="iter-trait.rs"] #[merge = "iter-trait/dvec.rs"]
pub mod dvec_iter;
pub mod dlist;
#[path="iter-trait.rs"] #[merge = "iter-trait/dlist.rs"]
pub mod dlist_iter;
Expand Down
355 changes: 0 additions & 355 deletions src/libcore/dvec.rs

This file was deleted.

Loading

0 comments on commit 3bbcac3

Please sign in to comment.