about summary refs log tree commit diff
path: root/src/libstd/smallintmap.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-516/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-22add smallintsetJihyun Yu-1/+242
2013-05-19Register snapshotsBrian Anderson-48/+0
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-12/+12
2013-05-10std: Use the new `for` protocolAlex Crichton-1/+52
2013-05-07Add pop() and swap() to the Map traitAlex Crichton-4/+36
2013-05-04Register snapshotsBrian Anderson-77/+0
2013-04-28make way for a new iter moduleDaniel Micay-1/+1
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-04-10libstd: changes to in response to #5656Niko Matsakis-1/+78
2013-04-10Revert map.each to something which takes two parametersNiko Matsakis-29/+23
rather than a tuple. The current setup iterates over `BaseIter<(&'self K, &'self V)>` where 'self is a lifetime declared *in the each method*. You can't place such a type in the impl declaration. The compiler currently allows it, but this will not be legal under #5656 and I'm pretty sure it's not sound now.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-25/+25
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-2/+2
2013-03-24expose find_mut in the Map traitDaniel Micay-12/+12
2013-03-24smallintmap: add find_mut methodDaniel Micay-2/+28
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-11/+11
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-1/+1
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-5/+6
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-6/+6
notation. rs=delifetiming
2013-03-13add the mutate_values method to the Map traitDaniel Micay-1/+11
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-6/+6
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-22/+22
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-2/+2
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-5/+5
rs=implflipping
2013-02-12Adjust borrow checker algorithm to address #4856 unsoundness,Niko Matsakis-4/+5
and then adjust code to match. rs=unsound (will review post-landing)
2013-02-07implement ReverseIter for SmallIntMapDaniel Micay-1/+13
2013-02-07implement BaseIter for SmallIntMapDaniel Micay-14/+19
2013-02-07rm each method from the Map traitDaniel Micay-10/+10
the map types should implement BaseIter instead
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-02-06remove old snapshot workaround from smallintmapDaniel Micay-4/+0
2013-01-31modernize smallintmapDaniel Micay-133/+94
* switch to explicit self * get rid of the @ box * replace DVec with ~[] (to get rid of the mutable field) * implement the new container::Map trait
2013-01-31copy oldsmallintmap.rs to smallintmap.rsDaniel Micay-0/+237
2013-01-31move smallintmap to oldsmallintmapDaniel Micay-237/+0
2013-01-31implement container::Mutable for SmallIntMapDaniel Micay-3/+17
2013-01-31clean up SmallIntMap tests a bitDaniel Micay-4/+3
2013-01-31drop the StdMap implementation from SmallIntMapDaniel Micay-9/+1
2013-01-31implement container::Container for SmallIntMapDaniel Micay-6/+30
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-4/+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-28Remove bounds from type decl of smallintmapNiko Matsakis-2/+2
r=brson
2013-01-24convert most of libstd over to structsErick Tryzelaar-2/+4
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+3
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-3/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+3
module scope. r=tjc
2012-12-27libstd: Fix a bunch of resolve errors in tests. rs=firePatrick Walton-1/+3
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-2/+5
contain at least two components. r=graydon
2012-12-09Remove transitional codeBrian Anderson-10/+0
2012-12-04librustc: Implement explicit self for Add and Index; add a hack in the ↵Patrick Walton-0/+10
borrow checker to support this. r=nmatsakis
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10