| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-03-30 | auto merge of #5630 : erickt/rust/serial, r=erickt | bors | -21/+0 | |
| @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-29 | Add AbiSet and integrate it into the AST. | Niko Matsakis | -15/+14 | |
| 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-29 | Merge remote-tracking branch 'remotes/origin/incoming' into serial | Erick Tryzelaar | -1803/+1803 | |
| 2013-03-29 | librustc: Remove `fail_unless!` | Patrick Walton | -1804/+1804 | |
| 2013-03-29 | Merge remote-tracking branch 'remotes/origin/incoming' into serial | Erick Tryzelaar | -0/+39 | |
| 2013-03-29 | std: remove prettyprint | Erick Tryzelaar | -21/+0 | |
| Everyone uses fmt!("%?", ...) instead of the prettyprint module, so I'm removing this file. | ||||
| 2013-03-29 | auto merge of #5620 : catamorphism/rust/issue-4325, r=catamorphism | bors | -0/+25 | |
| 2013-03-28 | testsuite: Add test case for #4325 | Tim Chevalier | -0/+25 | |
| 2013-03-28 | testsuite: Add test for #4333 | Tim Chevalier | -0/+14 | |
| 2013-03-28 | librustc: Remove common fields and nested enums from the language | Patrick Walton | -24/+0 | |
| 2013-03-28 | auto merge of #5586 : pcwalton/rust/expr-repeat-vstore, r=graydon | bors | -0/+23 | |
| r? @graydon | ||||
| 2013-03-27 | auto merge of #5578 : erickt/rust/incoming, r=jbclements,erickt | bors | -0/+3 | |
| Hey folks, This patch series does some work on the json decoder, specifically with auto decoding of enums. Previously, we would take this code: ``` enum A { B, C(~str, uint) } ``` and would encode a value of this enum to either `["B", []]` or `["C", ["D", 123]]`. I've changed this to `"B"` or `["C", "D", 123]`. This matches the style of the O'Caml json library [json-wheel](http://mjambon.com/json-wheel.html). I've added tests to make sure all this work. In order to make this change, I added passing a `&[&str]` vec to `Decode::emit_enum_variant` so the json decoder can convert the name of a variant into it's position. I also changed the impl of `Encodable` for `Option<T>` to have the right upper casing. I also did some work on the parser, which allows for `fn foo<T: ::cmp::Eq>() { ... }` statements (#5572), fixed the pretty printer properly expanding `debug!("...")` expressions, and removed `ast::expr_vstore_fixed`, which doesn't appear to be used anymore. | ||||
| 2013-03-27 | librustc: Allow expr_repeat to be used with any vstore | Patrick Walton | -0/+23 | |
| 2013-03-27 | auto merge of #5558 : nikomatsakis/rust/issue-4920-autoref-index-operator, ↵ | bors | -2/+57 | |
| r=nikomatsakis Per discussion on IRC. r? @pcwalton | ||||
| 2013-03-27 | Fix pretty-printer test failure by carrying the bound lifetime names through | Niko Matsakis | -2/+0 | |
| the types. Initially I thought it would be necessary to thread this data through not only the AST but the types themselves, but then I remembered that the pretty printer only cares about the AST. Regardless, I have elected to leave the changes to the types intact since they will eventually be needed. I left a few FIXMEs where it didn't seem worth finishing up since the code wasn't crucial yet. | ||||
| 2013-03-27 | another pub fn for check-fast | Graydon Hoare | -1/+1 | |
| 2013-03-27 | testsuite: more `pub fn main` | Tim Chevalier | -26/+126 | |
| 2013-03-27 | Oh, cool, I xfailed the wrong test, neat | Tim Chevalier | -0/+1 | |
| 2013-03-27 | testsuite: Add various test cases | Tim Chevalier | -0/+270 | |
| Some are xfailed, some not, some existing ones get un-xfailed. | ||||
| 2013-03-27 | Autoref the argument to the index operator (#4920) | Niko Matsakis | -2/+57 | |
| 2013-03-27 | test: xfail-pretty one of the run-pass tests. rs=burningtree | Patrick Walton | -0/+2 | |
| 2013-03-27 | syntax: Fix parsing global generics (Closes #5572) | Erick Tryzelaar | -0/+3 | |
| 2013-03-26 | test: Fix tests | Patrick Walton | -6/+6 | |
| 2013-03-26 | librustc: Enforce that `extern mod` directives come first, then `use` ↵ | Patrick Walton | -0/+11 | |
| directives, then items. Resolve them in this order as well. | ||||
| 2013-03-26 | librustc: Modify all code to use new lifetime binder syntax | Patrick Walton | -124/+71 | |
| 2013-03-26 | librustc: Fix bug with newtype structs containing dtors | Patrick Walton | -0/+17 | |
| 2013-03-26 | librustc: Remove all uses of the old `[T * N]` fixed-length vector syntax | Patrick Walton | -20/+20 | |
| 2013-03-26 | libcore: Change `[const T]` to `const [T]` everywhere | Patrick Walton | -100/+2 | |
| 2013-03-26 | option: rm functions that duplicate methods | Daniel Micay | -12/+12 | |
| 2013-03-26 | test: Remove uses of oldmap::HashMap | Alex Crichton | -54/+39 | |
| 2013-03-26 | auto merge of #5555 : Kimundi/rust/str-dealloc-3, r=catamorphism | bors | -2/+2 | |
| - 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 | Stop writing directly to the final type/method/vtable sidetables from astconv | Niko Matsakis | -0/+21 | |
| and from typeck, which is verboten. We are supposed to write inference results into the FnCtxt and then these get copied over in writeback. Add assertions that no inference by-products are added to this table. Fixes #3888 Fixes #4036 Fixes #4492 | ||||
| 2013-03-26 | Fixed all use sites and tests | Marvin Löbel | -2/+2 | |
| 2013-03-25 | auto merge of #5528 : thestinger/rust/find_mut, r=brson | bors | -0/+2 | |
| 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 | Expand on cleanups in trans for expr_repeat and add to tests. | Luqman Aden | -0/+7 | |
| 2013-03-24 | expose find_mut in the Map trait | Daniel Micay | -0/+2 | |
| 2013-03-22 | test: Add lifetime binders and new-style lifetime parameters to the test suite | Patrick Walton | -12/+12 | |
| 2013-03-22 | librustc: Remove the `const` declaration form everywhere | Patrick Walton | -121/+120 | |
| 2013-03-22 | auto merge of #5488 : pcwalton/rust/depure, r=pcwalton | bors | -138/+133 | |
| 2013-03-22 | test: Remove `pure` from the test suite | Patrick Walton | -117/+112 | |
| 2013-03-22 | auto merge of #5483 : pcwalton/rust/static-syntax, r=graydon | bors | -7/+7 | |
| r? @nikomatsakis | ||||
| 2013-03-22 | librustc: Remove all uses of `static` from functions. rs=destatic | Patrick Walton | -33/+33 | |
| 2013-03-22 | test: replace uses of old deriving attribute with new one | Andrew Paseltiner | -26/+26 | |
| 2013-03-21 | auto merge of #5480 : pcwalton/rust/at-const, r=pcwalton | bors | -18/+58 | |
| r? @catamorphism | ||||
| 2013-03-21 | librustc: Replace the `&static` bound with `'static` | Patrick Walton | -7/+7 | |
| 2013-03-21 | librustc: Forbid destructors from being attached to any structs that might ↵ | Patrick Walton | -18/+58 | |
| contain non-Owned fields. r=nmatsakis | ||||
| 2013-03-21 | auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclements | bors | -0/+10 | |
| Adds an assert_eq! macro that asserts that its two arguments are equal. Error messages can therefore be somewhat more informative than a simple assert, because the error message includes "expected" and "given" values. | ||||
| 2013-03-21 | auto merge of #5464 : luqmana/rust/const-pat, r=pcwalton | bors | -0/+22 | |
| r? @pcwalton | ||||
| 2013-03-21 | test: XFAIL test issue-4120 due to Valgrind complaints. | Patrick Walton | -0/+4 | |
| 2013-03-21 | Test for cross-crate const in match pattern. | Luqman Aden | -0/+22 | |
