bors
6016214101
auto merge of #4900 : luqmana/rust/core_os_errors, r=graydon
...
Rewrote the last pull request (#4859 ) to not require on llvm for core.
Also fixes #2269 .
2013-02-12 21:27:22 -08:00
bors
27b3e01377
auto merge of #4914 : nikomatsakis/rust/issue-4856, r=nikomatsakis
...
and then adjust code to match. rs=unsound (will review post-landing)
rs=unsound
2013-02-12 20:40:19 -08:00
Niko Matsakis
ab2534974c
Adjust borrow checker algorithm to address #4856 unsoundness,
...
and then adjust code to match. rs=unsound (will review post-landing)
2013-02-12 20:10:50 -08:00
bors
6727c6fb56
auto merge of #4881 : bjz/rust/incoming, r=catamorphism
2013-02-12 16:22:58 -08:00
bors
91c59f5c9a
auto merge of #4880 : erickt/rust/hashmap-cleanup, r=catamorphism
2013-02-12 15:24:42 -08:00
bors
bc2d147847
auto merge of #4858 : z0w0/rust/rm_weak_task_count, r=graydon
2013-02-12 14:36:33 -08:00
bors
210fa2d017
auto merge of #4874 : thestinger/rust/option, r=catamorphism
2013-02-12 10:35:12 -08:00
Luqman Aden
44b80ed0d6
Long lines.
2013-02-11 23:49:49 -05:00
Luqman Aden
70185fdcc2
rt: remove last_os_error and adjust tests.
2013-02-11 23:49:49 -05:00
Luqman Aden
625fac3c7e
core: Rewrite last_os_error in Rust for windows as well.
2013-02-11 23:49:49 -05:00
Luqman Aden
9877d98b8f
core: Rewrite last_os_error in Rust for unix and provide access to errno (unix) and GetLastError (windows).
2013-02-11 23:49:49 -05:00
Zack Corr
0db527e2f8
core: Fix dec/inc_kernel_live_count mixup
2013-02-12 12:27:19 +10:00
Zack Corr
33ae05871c
core: Fix files that needed GenericChan/Port from prelude
2013-02-11 12:11:23 +10:00
Brendan Zabarauskas
48b2141b83
Add NumCast trait for generic numeric type casts
2013-02-11 12:33:05 +11:00
Erick Tryzelaar
4fb4a4b66d
core: add LinearMap::find_or_insert{,_with}
...
This allows for inserting a new value into the map only if it doesn't
already exist in the map.
2013-02-10 15:51:25 -08:00
Erick Tryzelaar
849644b5bc
core: rename hashmap test functions
2013-02-10 15:51:25 -08:00
Erick Tryzelaar
fed5df8f2e
libcore: LinearMap doesn't need to pass around the bucket vec
2013-02-10 15:51:25 -08:00
Daniel Micay
99ff74c1bd
make Option's iter method use a lifetime
2013-02-10 16:30:17 -05:00
Zack Corr
4f843763a1
core: Remove GenericChan/Port from prelude. Closes #4762
2013-02-10 18:10:09 +10:00
bors
d90abd5879
auto merge of #4848 : nikomatsakis/rust/issue-4821-bad-kind-computation, r=catamorphism
...
...ear
values to be copied. Rewrite kind computation so that instead of directly
computing the kind it computes what kinds of values are present in the type,
and then derive kinds based on that. I find this easier to think about.
Fixes #4821 .
r? @catamorphism
2013-02-09 10:20:55 -08:00
Zack Corr
ebd20b7944
Rename dec/inc_weak_task_count to inc/dec_live_count and remove register_task/unregister_task. Closes #4768
2013-02-09 19:19:31 +10:00
Niko Matsakis
a380df809c
Fix subtle error in caching during kind computation that could cause linear
...
values to be copied. Rewrite kind computation so that instead of directly
computing the kind it computes what kinds of values are present in the type,
and then derive kinds based on that. I find this easier to think about.
Fixes #4821 .
2013-02-08 07:20:39 -08:00
bors
e5637226d8
auto merge of #4839 : catamorphism/rust/rm-structural-records, r=catamorphism
2013-02-07 23:16:42 -08:00
Tim Chevalier
3b8f1fa2b6
core: Remove structural records from the rest of core, except pipes
...
That will, sadly, require one more snapshot.
2013-02-07 22:48:57 -08:00
Daniel Micay
9599cc86f0
implement BaseIter for LinearMap
2013-02-07 22:28:58 -05:00
Daniel Micay
3e0a28c7da
add a ReverseIter trait
2013-02-07 22:04:38 -05:00
Daniel Micay
e018244777
make Option's map and map_default use a lifetime
2013-02-07 22:04:38 -05:00
Daniel Micay
83270d2d79
rm each method from the Map trait
...
the map types should implement BaseIter instead
2013-02-07 22:04:35 -05:00
Tim Chevalier
9123c58526
core: Remove transitional code
2013-02-07 18:26:43 -08:00
Patrick Walton
472797b04a
librustc: Lots of de-muting. rs=demuting
2013-02-07 16:17:39 -08:00
Brian Anderson
6e9298ab88
Merge pull request #4619 from brson/exchange
...
Some work on freestanding Rust: foreign calls, exchange allocator
2013-02-07 13:46:10 -08:00
Niko Matsakis
a32498d846
Make ~fn non-copyable, make &fn copyable, split barefn/closure types,
...
correct handling of moves for struct-record update.
Part of #3678 . Fixes #2828 , #3904 , #4719 .
2013-02-07 05:53:30 -08:00
bors
951ad11d68
auto merge of #4815 : thestinger/rust/treemap, r=pcwalton
...
5283a8b reworks the TreeMap lazy iterator to use `&mut` again, which closes #4763 . It gets the performance of the set methods back in the same ballpark that it was pre-INHTWAMA which is nice. These can be turned back into methods eventually.
e5b6334 removes the transitional smallintmap attributes which closes #4737 .
2013-02-06 22:57:08 -08:00
bors
2df473dc69
auto merge of #4801 : z0w0/rust/randomtrait, r=graydon
...
Also adds Rng::gen() for generically generating any type that implements the Rand trait. There's no way to generate things with a length (for e.g. strings or vectors), because I can't think of an elegant way to do that. Maybe have a RandLen trait that inherits Rand?
This can be used for a quickcheck mechanism I'm working on.
2013-02-06 21:04:37 -08:00
Daniel Micay
b91a51daca
remove issue #3148 workarounds (no longer needed)
2013-02-06 17:37:56 -05:00
Brian Anderson
e43c5bdc6b
Rewrite the exchange allocator to work without an active scheduler. #4457
2013-02-06 14:27:36 -08:00
Tim Chevalier
33e2c979ce
Merge branch 'incoming' into removing
2013-02-05 10:33:35 -08:00
Tim Chevalier
2dcb3ed745
Merge
2013-02-05 10:33:28 -08:00
bors
e72c917f71
auto merge of #4793 : brson/rust/ignore_exclusive_unwrap_conflict, r=brson
2013-02-05 05:21:28 -08:00
Zack Corr
abd29e5ead
core: Add a rand::Rand trait that is implemented by types that can be
...
randomly generated
Also adds Rng::gen() for generating any type that implements the Rand
trait
2013-02-05 22:56:40 +10:00
bors
6e0f05b059
auto merge of #4790 : pcwalton/rust/at-readers, r=pcwalton
2013-02-05 02:09:29 -08:00
Tim Chevalier
2f46b763da
core/syntax: Staging fixes
2013-02-04 17:42:19 -08:00
Tim Chevalier
e22aa029fb
core/syntax: Add transitional code for pipes
2013-02-04 15:18:53 -08:00
Brian Anderson
8dfab498ef
Ignore test exclusive_unwrap_conflict. #4689
2013-02-04 14:19:19 -08:00
bors
eb28ce01ed
automated merge
2013-02-04 13:35:37 -08:00
Patrick Walton
7d5322cf09
libcore: Add @ to Readers
2013-02-04 13:33:17 -08:00
Erick Tryzelaar
159568eab5
core: Flesh out the either traits
2013-02-03 21:55:51 -08:00
Erick Tryzelaar
f4ed7d9b6e
core: export either::{Either,Left,Right} from the prelude
2013-02-03 21:55:51 -08:00
Erick Tryzelaar
31404364e1
core: sort each prelude.rs section
2013-02-03 21:55:51 -08:00
Erick Tryzelaar
9adfa59d8e
core: convert ToStr::to_str to take explicit &self
2013-02-03 20:47:26 -08:00