| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-03-29 | Merge remote-tracking branch 'remotes/origin/incoming' into serial | Erick Tryzelaar | -6/+6 | |
| 2013-03-29 | Merge remote-tracking branch 'remotes/origin/incoming' into serial | Erick Tryzelaar | -30/+0 | |
| 2013-03-29 | librustc: Remove `fail_unless!` | Patrick Walton | -6/+6 | |
| 2013-03-29 | Register snapshots | Brian Anderson | -30/+0 | |
| 2013-03-29 | Merge remote-tracking branch 'remotes/origin/incoming' into serial | Erick Tryzelaar | -4/+4 | |
| 2013-03-29 | std: add Encoder::emit_map and Decoder::read_map | Erick Tryzelaar | -0/+27 | |
| 2013-03-29 | std: remove Encoder::read_rec and Decoder::emit_rec | Erick Tryzelaar | -6/+0 | |
| 2013-03-29 | std: remove Encoder::emit_tup{,_elt} and Decoder::read_tup{,_elt} | Erick Tryzelaar | -13/+0 | |
| 2013-03-29 | std: remove Encoder::emit_{owned,managed}_vec and ↵ | Erick Tryzelaar | -23/+6 | |
| Decoder::read_{owned,managed}_vec | ||||
| 2013-03-29 | std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed} | Erick Tryzelaar | -14/+0 | |
| 2013-03-29 | std: remove Encoder::emit_{owned,managed}_str and ↵ | Erick Tryzelaar | -13/+2 | |
| Decoder::read_{owned,managed}_str | ||||
| 2013-03-28 | Removing unused imports | Alex Crichton | -4/+4 | |
| 2013-03-28 | std: change Decoder::read_option to return a generic type | Erick Tryzelaar | -6/+6 | |
| This allows read_option to be used with a custom option type instead of just core::Option. | ||||
| 2013-03-28 | std: change Decoder::read_option to return a generic type | Erick Tryzelaar | -6/+6 | |
| This allows read_option to be used with a custom option type instead of just core::Option. | ||||
| 2013-03-28 | auto merge of #5595 : catamorphism/rust/demoding, r=catamorphism | bors | -1/+0 | |
| 2013-03-27 | auto merge of #5578 : erickt/rust/incoming, r=jbclements,erickt | bors | -2/+54 | |
| 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 | core: Remove unused import | Tim Chevalier | -1/+0 | |
| 2013-03-27 | Autoref the argument to the index operator (#4920) | Niko Matsakis | -5/+3 | |
| 2013-03-27 | std: Decode::read_enum_variant should pass in the variant names | Erick Tryzelaar | -0/+30 | |
| Because the json::Decoder uses the string variant name, we need a way to correlate the string to the enum index. This passes in a static &[&str] to read_enum_variant, which allows the json::Decoder to know which branch it's trying to process. | ||||
| 2013-03-27 | std: add option type directly to serialize::{En,De}code | Erick Tryzelaar | -2/+24 | |
| 2013-03-22 | librustc: Remove the `const` declaration form everywhere | Patrick Walton | -1/+1 | |
| 2013-03-22 | libstd: Remove all uses of `pure` from libstd. rs=depure | Patrick Walton | -1/+1 | |
| 2013-03-13 | librustc: Don't accept `as Trait` anymore; fix all occurrences of it. | Patrick Walton | -4/+4 | |
| 2013-03-11 | librustc: Replace all uses of `fn()` with `&fn()`. rs=defun | Patrick Walton | -35/+35 | |
| 2013-03-07 | librustc: Convert all uses of `assert` over to `fail_unless!` | Patrick Walton | -6/+6 | |
| 2013-03-07 | De-implicit-self libstd | Ben Striegel | -21/+21 | |
| 2013-03-04 | Remove unused imports throughout src/ | Alex Crichton | -6/+0 | |
| 2013-03-02 | Remove REC, change related tests/docs | Jihyun Yu | -2/+2 | |
| 2013-02-28 | librustc: Mark all type implementations public. rs=impl-publicity | Patrick Walton | -3/+3 | |
| 2013-02-15 | auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brson | bors | -3/+5 | |
| Issue #3869 review? @nikomatsakis Convert all uses of vec::slice to vec::view Issue #3869 Rename const_view to const_slice Renamed mut_view to mut_slice Fix windows build error. `buf` is borrowed by the call to `as_mut_buf()` and so we must invoke `slice()` outside of that call. | ||||
| 2013-02-15 | libstd: Get rid of `move`. | Luqman Aden | -2/+2 | |
| 2013-02-14 | Convert all uses of vec::slice to vec::view Issue #3869 | Nick Desaulniers | -3/+5 | |
| Rename const_view to const_slice Renamed mut_view to mut_slice | ||||
| 2013-02-14 | librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵ | Patrick Walton | -3/+3 | |
| rs=implflipping | ||||
| 2013-02-13 | Remove die!, raplace invocations with fail! Issue #4524 pt 3 | Nick Desaulniers | -19/+19 | |
| 2013-02-07 | Make ~fn non-copyable, make &fn copyable, split barefn/closure types, | Niko Matsakis | -2/+0 | |
| correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719. | ||||
| 2013-02-04 | std: Stamp out structural records | Tim Chevalier | -5/+10 | |
| See #4665 | ||||
| 2013-01-31 | Replace most invocations of fail keyword with die! macro | Nick Desaulniers | -21/+22 | |
| 2013-01-29 | libstd: Remove "dual impls" from the language and enforce coherence rules. ↵ | Patrick Walton | -0/+1 | |
| r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs. | ||||
| 2013-01-25 | register snapshots | Graydon Hoare | -13/+0 | |
| 2013-01-14 | Add cfg attrs to handle auto_encode transition | Brian Anderson | -0/+13 | |
| 2013-01-14 | Merge remote-tracking branch 'mneumann/f-serialize' | Brian Anderson | -2/+2 | |
| 2013-01-08 | librustc: Make unqualified identifier searches terminate at the nearest ↵ | Patrick Walton | -3/+15 | |
| module scope. r=tjc | ||||
| 2013-01-08 | Revert "librustc: Make unqualified identifier searches terminate at the ↵ | Patrick Walton | -15/+3 | |
| nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6. | ||||
| 2013-01-08 | librustc: Make unqualified identifier searches terminate at the nearest ↵ | Patrick Walton | -3/+15 | |
| module scope. r=tjc | ||||
| 2012-12-27 | libstd: Fix a bunch of resolve errors in tests. rs=fire | Patrick Walton | -0/+6 | |
| 2012-12-27 | librustc: Terminate name searches at the nearest module scope for paths that ↵ | Patrick Walton | -2/+18 | |
| contain at least two components. r=graydon | ||||
| 2012-12-27 | Enhance auto_encode to take number of struct fields | Michael Neumann | -2/+2 | |
| emit_struct and read_struct takes an additional len:uint parameter which tells us how many fields the struct we are working on has. This is required to implement an Encoder for the msgpack [1] serialization format. To serialize a struct with msgpack you have to use arrays and the size of the array has to be know before each of the elements are written out. JSON as an example doesn't have this problem as it uses '[' and ']' delimiters for arrays. [1]: www.msgpack.org | ||||
| 2012-12-19 | Remove serialize::traits submodule. | Erick Tryzelaar | -1/+1 | |
| 2012-12-18 | Stop resolving static methods at the module level. Closes #4179 | Brian Anderson | -1/+1 | |
| 2012-12-17 | Switch from serialization to std::serialize. (snapshot) | Erick Tryzelaar | -25/+25 | |
