about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-03-30vim: separate the conditional keywordsDaniel Micay-2/+6
2013-03-30vim: mark Todo as contained and rm unsafe from itDaniel Micay-2/+1
It's nice to make unsafe stand out, but this way isn't correct because it highlights it in comments.
2013-03-30vim: highlight ref + static as storage specifiersDaniel Micay-2/+2
lifetimes and globals are now the only two places static is used, and 'static isn't matched by this
2013-03-30rustc: fix astencode testErick Tryzelaar-12/+1
2013-03-30vim: assert and pure keywords were removedDaniel Micay-6/+3
2013-03-30std: add more json decoder tests.Erick Tryzelaar-12/+124
2013-03-30syntax: fix auto_encode test.Erick Tryzelaar-4/+4
2013-03-30std: clean up the json pretty printer testsErick Tryzelaar-88/+71
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-352/+879
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-29std: Add Deque::eachi and a Deque serializer supportErick Tryzelaar-0/+58
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-5924/+5911
2013-03-29std: add serialization support for dlist, linearset, triemap, trieset, ↵Erick Tryzelaar-1/+183
treemap, and treeset
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-107/+11
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-5921/+5908
2013-03-29Register snapshotsBrian Anderson-88/+8
2013-03-29change to parsing using ttsJohn Clements-2/+44
also, updates test cases a bit
2013-03-29commenting parserJohn Clements-4/+50
2013-03-29field renamingJohn Clements-28/+29
2013-03-29std: fix json deserializing vectors and a testErick Tryzelaar-6/+4
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-319/+354
2013-03-29std: add Encoder::emit_map and Decoder::read_mapErick Tryzelaar-103/+263
2013-03-29core: add consume_reverseErick Tryzelaar-0/+28
2013-03-29std: remove Encoder::read_rec and Decoder::emit_recErick Tryzelaar-48/+22
2013-03-29std: remove Encoder::emit_tup{,_elt} and Decoder::read_tup{,_elt}Erick Tryzelaar-57/+0
2013-03-29std: remove Encoder::emit_{owned,managed}_vec and ↵Erick Tryzelaar-124/+78
Decoder::read_{owned,managed}_vec
2013-03-29std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed}Erick Tryzelaar-33/+5
2013-03-29std: remove Encoder::emit_{owned,managed}_str and ↵Erick Tryzelaar-72/+20
Decoder::read_{owned,managed}_str
2013-03-29core: add LinearMap::with_capacityErick Tryzelaar-3/+17
2013-03-29std: remove prettyprintErick Tryzelaar-221/+0
Everyone uses fmt!("%?", ...) instead of the prettyprint module, so I'm removing this file.
2013-03-29auto merge of #5570 : alexcrichton/rust/fix-unused-imports, r=sanxiynbors-312/+298
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 #5620 : catamorphism/rust/issue-4325, r=catamorphismbors-0/+25
2013-03-29auto merge of #5619 : catamorphism/rust/issue-4333, r=catamorphismbors-0/+14
2013-03-29auto merge of #5618 : pcwalton/rust/print-in-prelude, r=brsonbors-0/+4
r? @brson
2013-03-29auto merge of #5617 : catamorphism/rust/issue-4335, r=catamorphismbors-3/+2
2013-03-29libcore: language change minor fix for ARM & MIPSYoung-il Choi-2/+2
2013-03-28auto merge of #5616 : pcwalton/rust/parenthesized-trait, r=brsonbors-1/+5
r? @brson
2013-03-28auto merge of #5614 : graydon/rust/static-linkage-bug, r=catamorphismbors-1/+4
re bug that @nikomatsakis was hitting: when you define a `static` (old: `const`) containing a `&` or `&[]` expression, it will create temporaries (the underlying pointee) by creating a throwaway symbol for each temporary, each with _global_ linkage, and each named `"const"`. LLVM will helpfully rename multiple copies of this throwaway symbol to `"const1"` and `"const2"` and so forth in the _same_ library. But if you have _2 libraries_ -- say, libcore and librustc -- that both do this, the dynamic linker (at least on linux) will happily do horrible things like make the slice in one library point to the bytes of the vector from the other library. This is obviously a recipe for much hilarity and head-scratching. The solution is to change the linkage to something else, internal or (in the case of this patch) _private_. It will require a snapshot to integrate this into stage0 and thereby fix the problem / unblock patches that were hitting this in stage1.
2013-03-28Removing unused importsAlex Crichton-303/+285
2013-03-28Fix warning about unused imports in import listsAlex Crichton-11/+15
Before, if anything in a list was used, the entire list was considered to be used. This corrects this and also warns on a span of the actual unused import instead of the entire list.
2013-03-28std: change Decoder::read_option to return a generic typeErick Tryzelaar-11/+17
This allows read_option to be used with a custom option type instead of just core::Option.
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-28testsuite: Add test case for #4325Tim Chevalier-0/+25
2013-03-28libcore: Add `print` and `println` to the preludePatrick Walton-0/+4
2013-03-28testsuite: Add test for #4333Tim Chevalier-0/+14
2013-03-28auto merge of #5608 : erickt/rust/incoming, r=catamorphismbors-11/+22
@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-28testsuite: Update and un-xfail test for #4335Tim Chevalier-3/+2
2013-03-28libsyntax: Don't allow `impl (Trait) for Type` (with the parentheses).Patrick Walton-1/+5
2013-03-28auto merge of #5593 : luqmana/rust/inline-asm, r=catamorphismbors-138/+226
Clean things up a bit. Also, allow selecting intel syntax in addition to the default AT&T dialect.
2013-03-28rustc: fix linkage of internal static nodes.Graydon Hoare-1/+4