about summary refs log tree commit diff
path: root/src/libstd/deque.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-329/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Register snapshotsBrian Anderson-12/+0
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-55/+55
2013-05-10Stop using the '<->' operatorAlex Crichton-3/+3
2013-05-10std: Use the new `for` protocolAlex Crichton-3/+13
2013-05-07std: Replace Durable with 'staticBrian Anderson-2/+2
2013-05-04Register snapshotsBrian Anderson-122/+0
2013-05-02More cases of [cfg(test)] instead of [test].Felix S. Klock II-1/+1
2013-04-27only use #[no_core] in libcoreDaniel Micay-4/+0
2013-04-20std: remove unused 'mut' variablesAlex Crichton-4/+4
2013-04-10libstd: changes to in response to #5656Niko Matsakis-0/+122
2013-03-29std: Add Deque::eachi and a Deque serializer supportErick Tryzelaar-0/+32
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-55/+55
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-1/+1
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-1/+1
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-3/+3
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-1/+1
2013-03-22std: replace uses of old deriving attribute with new oneAndrew Paseltiner-3/+3
2013-03-21deque: add a module docstringDaniel Micay-0/+2
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-2/+2
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-4/+4
notation. rs=delifetiming
2013-03-15deque: add documentationDaniel Micay-1/+24
2013-03-11Remove uses of logBrian Anderson-11/+10
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-55/+55
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-0/+3
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-1/+1
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-1/+1
2013-02-17vec: grow_fn doesn't require CopyDaniel Micay-1/+1
2013-02-16deque: get rid of Copy requirementDaniel Micay-2/+0
Closes #3748
2013-02-16deque: avoid Copy in growDaniel Micay-8/+5
2013-02-16deque: avoid Copy for getDaniel Micay-17/+17
2013-02-16deque: avoid Copy in pop_{front,back}Daniel Micay-18/+17
2013-02-16deque: avoid Copy in peek_{front,back}Daniel Micay-52/+50
2013-02-16deque: avoid Copy in the get functionDaniel Micay-7/+7
2013-02-16deque: separate the methods that need CopyDaniel Micay-1/+3
2013-02-16deque: rm old return statementsDaniel Micay-5/+5
2013-02-16add a Mutable implementation (clear) to std::dequeDaniel Micay-0/+9
2013-02-16modernize std::dequeDaniel Micay-132/+109
* use a proper exported data type with private fields * implement core::container::Container * use the current constructor convention * use explicit self * get rid of DVec and the mutable fields Closes #2343
2013-02-15libstd: Get rid of `move`.Luqman Aden-5/+5
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-1/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-54/+4
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.
2013-01-24convert most of libstd over to structsErick Tryzelaar-17/+22
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+4
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-4/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+4
module scope. r=tjc
2012-12-27libstd: Fix a bunch of resolve errors in tests. rs=firePatrick Walton-0/+2