summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2013-04-01auto merge of #5667 : graydon/rust/remove-a-mode, r=catamorphismbors-1/+1
It seems nobody can figure out whether this is _supposed to_ make a difference anymore, and in testing it seems to work either way, so I removed it. One less alarming warning during a fresh build.
2013-04-01doc: Update tutorial description of coreBrian Anderson-1/+1
2013-04-01core: Update libc docs to clarify usageBrian Anderson-1/+13
2013-04-01remove stray mode on callback, seems to not change anythingGraydon Hoare-1/+1
2013-03-31Fix underflow in char_range_at_reverseMarvin Löbel-2/+15
Added char_range_at_reverse underflow test
2013-03-30auto merge of #5638 : luqmana/rust/5405, r=brsonbors-2/+48
#5405 Also, renames the confusingly named `use_new_rt` in `libcore/unstable/lang.rs`
2013-03-30Rename confusing var, use_new_rt -> use_old_rt.Luqman Aden-4/+4
2013-03-30Correct type signature for start lang item.Luqman Aden-0/+46
2013-03-30move dlist from core -> stdDaniel Micay-993/+0
Closes #3549
2013-03-30auto merge of #5630 : erickt/rust/serial, r=ericktbors-3/+45
@nikomatsakis and I were talking about how the serializers were a bit too complicated. None of the users of With the `emit_option` and `read_option` functions, the serializers are now moving more high level. This patch series continues that trend. I've removed support for emitting specific string and vec types, and added support for emitting mapping types.
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-11/+11
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-2243/+2243
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-2243/+2243
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-49/+60
2013-03-29core: add consume_reverseErick Tryzelaar-0/+28
2013-03-29core: add LinearMap::with_capacityErick Tryzelaar-3/+17
2013-03-29auto merge of #5570 : alexcrichton/rust/fix-unused-imports, r=sanxiynbors-47/+54
Before it wouldn't warn about unused imports in the list if something in the list was used. These commits fix that case, add a test, and remove all unused imports in lists of imports throughout the compiler.
2013-03-29auto merge of #5622 : yichoi/rust/pull-0329, r=catamorphismbors-2/+2
libcore: language change minor fix for ARM & MIPS fix context.rs
2013-03-29auto merge of #5618 : pcwalton/rust/print-in-prelude, r=brsonbors-0/+4
r? @brson
2013-03-29libcore: language change minor fix for ARM & MIPSYoung-il Choi-2/+2
2013-03-28Removing unused importsAlex Crichton-47/+54
2013-03-28core: Inline mallocing wrapper functionsErick Tryzelaar-0/+5
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-28libcore: Add `print` and `println` to the preludePatrick Walton-0/+4
2013-03-28auto merge of #5608 : erickt/rust/incoming, r=catamorphismbors-0/+5
@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-28auto merge of #5609 : Kimundi/rust/incoming, r=catamorphismbors-1/+2
2013-03-28Unbreak 'rustc --help'Marvin Löbel-1/+2
2013-03-28core: Inline mallocing wrapper functionsErick Tryzelaar-0/+5
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-28Register snapshotsBrian Anderson-189/+0
2013-03-28auto merge of #5595 : catamorphism/rust/demoding, r=catamorphismbors-2/+2
2013-03-28auto merge of #5587 : thestinger/rust/total, r=pcwaltonbors-74/+134
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-28auto merge of #5586 : pcwalton/rust/expr-repeat-vstore, r=graydonbors-1/+1
r? @graydon
2013-03-27auto merge of #5574 : thestinger/rust/docstring, r=sanxiynbors-2/+5
2013-03-27core/std: Remove uses of ++ modeTim Chevalier-2/+2
from stackwalk::frame_address and net_tcp::on_tcp_read_cb As per #4425
2013-03-27add a TotalEq traitDaniel Micay-24/+115
2013-03-27librustc: Allow expr_repeat to be used with any vstorePatrick Walton-1/+1
2013-03-27cmp: rm TotalOrd impl code duplicationDaniel Micay-53/+22
2013-03-27Autoref the argument to the index operator (#4920)Niko Matsakis-1/+1
2013-03-27ops: add a docstringDaniel Micay-1/+1
2013-03-27hashmap: improve docstringDaniel Micay-1/+4
2013-03-26librustc: Remove obsolete syntaxPatrick Walton-16/+42
2013-03-26librustc: Enforce that `extern mod` directives come first, then `use` ↵Patrick Walton-62/+61
directives, then items. Resolve them in this order as well.
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-116/+131
2013-03-26librustc: Remove all uses of the old `[T * N]` fixed-length vector syntaxPatrick Walton-22/+24
2013-03-26libcore: Change `[const T]` to `const [T]` everywherePatrick Walton-51/+53
2013-03-26auto merge of #5414 : thestinger/rust/option, r=catamorphismbors-295/+145
2013-03-26option: rm functions that duplicate methodsDaniel Micay-295/+145
2013-03-26auto merge of #5560 : brson/rust/relnotes, r=brsonbors-0/+2
r?
2013-03-26auto merge of #5547 : catamorphism/rust/issue-4898, r=catamorphismbors-3/+53
2013-03-26syntax: Removing uses of HashMapAlex Crichton-0/+5
2013-03-26Remove unused imports throughoutAlex Crichton-8/+2