bors
7a6cd2b21e
auto merge of #5608 : erickt/rust/incoming, r=catamorphism
...
@nikomatsakis pointed out that `fn read_option<T>(&self, f: &fn() -> T) -> Option<T>` should have this syntax so it can work with custom option types: `fn read_option<T>(&self, f: &fn(bool) -> T) -> T`.
Also, this also includes some `#[inline(always)]` on the memory functions in `src/libcore/unstable/lang.rs` to reduce one level of indirection when allocating memory.
2013-03-28 19:06:48 -07:00
bors
5a97c484b1
auto merge of #5609 : Kimundi/rust/incoming, r=catamorphism
2013-03-28 14:42:49 -07:00
Marvin Löbel
eac2f3b93e
Unbreak 'rustc --help'
2013-03-28 21:44:46 +01:00
Erick Tryzelaar
ce9e5ecb6c
core: Inline mallocing wrapper functions
...
As far as I can tell, this doesn't make rust compile any
faster, but it does at least remove one level of indirection
on malloc, which might help speed up some operations.
2013-03-28 13:11:24 -07:00
Brian Anderson
145f66fdf0
Register snapshots
2013-03-28 12:40:57 -07:00
bors
b1c0a6628b
auto merge of #5595 : catamorphism/rust/demoding, r=catamorphism
2013-03-28 04:54:45 -07:00
bors
e549b80e3c
auto merge of #5587 : thestinger/rust/total, r=pcwalton
...
This is needed so that hash tables can require strict equality but not require types to be ordered. It's a subset of the functionality of `TotalOrd` so I made that inherit from `TotalEq`.
2013-03-28 02:36:49 -07:00
bors
d31053277a
auto merge of #5586 : pcwalton/rust/expr-repeat-vstore, r=graydon
...
r? @graydon
2013-03-28 01:33:48 -07:00
bors
f7f6013a62
auto merge of #5574 : thestinger/rust/docstring, r=sanxiyn
2013-03-27 17:48:56 -07:00
Tim Chevalier
b0d1643fa6
core/std: Remove uses of ++ mode
...
from stackwalk::frame_address and net_tcp::on_tcp_read_cb
As per #4425
2013-03-27 17:14:10 -07:00
Daniel Micay
d2b267bcb5
add a TotalEq trait
2013-03-27 17:29:10 -04:00
Patrick Walton
e5dda811a9
librustc: Allow expr_repeat to be used with any vstore
2013-03-27 13:53:03 -07:00
Daniel Micay
91cb6687a8
cmp: rm TotalOrd impl code duplication
2013-03-27 14:17:16 -04:00
Niko Matsakis
069529bc5c
Autoref the argument to the index operator ( #4920 )
2013-03-27 13:04:03 -04:00
Daniel Micay
9c1bbc586c
ops: add a docstring
2013-03-27 03:42:03 -04:00
Daniel Micay
4d3b0a1529
hashmap: improve docstring
2013-03-27 03:42:00 -04:00
Patrick Walton
f41a510631
librustc: Remove obsolete syntax
2013-03-26 21:30:18 -07:00
Patrick Walton
0a4d0f37ca
librustc: Enforce that extern mod
directives come first, then use
directives, then items.
...
Resolve them in this order as well.
2013-03-26 21:30:17 -07:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Patrick Walton
142dbd65da
librustc: Remove all uses of the old [T * N]
fixed-length vector syntax
2013-03-26 21:29:34 -07:00
Patrick Walton
0d52b22e7b
libcore: Change [const T]
to const [T]
everywhere
2013-03-26 21:29:33 -07:00
bors
5df1aaab98
auto merge of #5414 : thestinger/rust/option, r=catamorphism
2013-03-26 20:18:54 -07:00
Daniel Micay
34c5a09ce3
option: rm functions that duplicate methods
2013-03-26 22:44:40 -04:00
bors
4cb5854d88
auto merge of #5560 : brson/rust/relnotes, r=brson
...
r?
2013-03-26 19:24:53 -07:00
bors
5011d05db2
auto merge of #5547 : catamorphism/rust/issue-4898, r=catamorphism
2013-03-26 17:54:53 -07:00
Alex Crichton
e4c3d805a4
syntax: Removing uses of HashMap
2013-03-26 19:20:02 -04:00
Alex Crichton
fa7772893a
Remove unused imports throughout
2013-03-26 19:20:02 -04:00
Tim Chevalier
3ba7e041f1
core: As per #4898 , finish impls for one-tuples
2013-03-26 16:08:05 -07:00
bors
3d588c5286
auto merge of #5555 : Kimundi/rust/str-dealloc-3, r=catamorphism
...
- Most functions that used to return `~[~str]` for a list of substrings got turned into iterators over `&str` slices
- Some cleanup of apis, docs and code layout
2013-03-26 15:07:07 -07:00
Brian Anderson
f792d177a4
core: Hide GC docs
2013-03-26 12:27:47 -07:00
bors
bbc4ca1349
auto merge of #5532 : brson/rust/coredocs, r=brson
...
r?
2013-03-26 12:16:19 -07:00
Brian Anderson
e5f8026eba
core: Make sure every module at least has a one-line description
2013-03-26 11:48:22 -07:00
Brian Anderson
113fbfc795
core: Clarify prelude docs. #4556
2013-03-26 11:47:52 -07:00
Niko Matsakis
0dc6c414af
Check for null in return_to_mut. Fixes #4904 .
2013-03-26 14:12:13 -04:00
Marvin Löbel
de468c8cd2
Added more missing lifetime annotations
2013-03-26 19:07:14 +01:00
Marvin Löbel
c88a20d171
Added missing lifetime annotations, doc and whitespace cleanups
2013-03-26 16:24:15 +01:00
Marvin Löbel
06c371605b
Fixed all use sites and tests
2013-03-26 14:59:17 +01:00
Marvin Löbel
c99488b3a4
Isolated bug, static vector seems to behave differently than fixed sized one
2013-03-26 14:59:17 +01:00
Marvin Löbel
b9de2b5787
Switched over a bunch of splitting funktions to non-allocating iterators
2013-03-26 14:59:17 +01:00
Marvin Löbel
d74606ead6
pre-rebase commit
2013-03-26 14:59:17 +01:00
Marvin Löbel
624a685283
Moved float str buffer constants to the strconv module
2013-03-26 14:59:17 +01:00
Felix S. Klock II
afaa48cfb5
Spelling fixes; replaced size
with capacity
in few places.
2013-03-26 14:18:48 +01:00
Felix S. Klock II
a266bda393
Fixes mozilla/rust#3612 .
2013-03-26 14:18:48 +01:00
bors
125cdf52cd
auto merge of #5542 : catamorphism/rust/issue-4983, r=catamorphism
2013-03-26 04:42:57 -07:00
bors
7481524978
auto merge of #5528 : thestinger/rust/find_mut, r=brson
...
This currently requires workarounds for the borrow checker not being flow-sensitive for `LinearMap` and `TrieMap`, but it can already be expressed for `TreeMap` and `SmallIntMap` without that.
2013-03-25 22:24:57 -07:00
bors
47ddb59b80
auto merge of #5525 : dbaupp/rust/minor_fixups, r=graydon
...
Kills some warnings, and implements str::each_char_reverse so that it actually iterates. The test case wasn't detecting a failure, since the loop body was never executed.
2013-03-25 21:18:57 -07:00
bors
00605d58de
auto merge of #5513 : apasel422/rust/deriving, r=luqmana
...
This removes some explicit implementations of `Eq` in favor of `#[deriving(Eq)]` and derives `Clone` for a few core types.
2013-03-25 19:01:00 -07:00
Brian Anderson
30d4124a37
Merge remote-tracking branch 'brson/rt'
...
Conflicts:
src/libcore/rt/context.rs
src/libcore/rt/sched.rs
src/libcore/rt/thread.rs
src/libcore/rt/uv.rs
2013-03-25 12:28:54 -07:00
Tim Chevalier
6647150657
core: Fix doc comment error, as per #4983
2013-03-25 11:12:14 -07:00
Daniel Micay
e8bf0a4a49
trie: improve docstring
2013-03-25 00:22:23 -04:00