| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-03-29 | std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed} | Erick Tryzelaar | -29/+5 | |
| 2013-03-29 | std: remove Encoder::emit_{owned,managed}_str and ↵ | Erick Tryzelaar | -66/+17 | |
| Decoder::read_{owned,managed}_str | ||||
| 2013-03-29 | std: remove prettyprint | Erick Tryzelaar | -200/+0 | |
| Everyone uses fmt!("%?", ...) instead of the prettyprint module, so I'm removing this file. | ||||
| 2013-03-28 | Removing unused imports | Alex Crichton | -20/+26 | |
| 2013-03-28 | std: change Decoder::read_option to return a generic type | Erick Tryzelaar | -11/+17 | |
| 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 | -11/+17 | |
| 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 | -2/+1 | |
| 2013-03-27 | auto merge of #5578 : erickt/rust/incoming, r=jbclements,erickt | bors | -207/+481 | |
| 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 | auto merge of #5574 : thestinger/rust/docstring, r=sanxiyn | bors | -0/+2 | |
| 2013-03-27 | core/std: Remove uses of ++ mode | Tim Chevalier | -1/+1 | |
| from stackwalk::frame_address and net_tcp::on_tcp_read_cb As per #4425 | ||||
| 2013-03-27 | core: Remove unused import | Tim Chevalier | -1/+0 | |
| 2013-03-27 | Autoref the argument to the index operator (#4920) | Niko Matsakis | -9/+9 | |
| 2013-03-27 | std: add some better failure msgs to json | Erick Tryzelaar | -3/+3 | |
| 2013-03-27 | std: add tests for decoding json enums | Erick Tryzelaar | -1/+14 | |
| 2013-03-27 | std: Decode::read_enum_variant should pass in the variant names | Erick Tryzelaar | -2/+63 | |
| 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 | -39/+68 | |
| 2013-03-27 | std: change default json enum encoder to use strings or a flat vec | Erick Tryzelaar | -41/+16 | |
| 2013-03-27 | std: Add tests for json decoding options | Erick Tryzelaar | -0/+18 | |
| 2013-03-27 | std: fix json PrettyEncoder and add tests | Erick Tryzelaar | -33/+220 | |
| 2013-03-27 | std: change fail_unless to assert_eq in json.rs | Erick Tryzelaar | -133/+128 | |
| 2013-03-27 | std: serializing Options should use the right case | Erick Tryzelaar | -4/+4 | |
| 2013-03-27 | std: clean json test imports | Erick Tryzelaar | -6/+2 | |
| 2013-03-27 | base64: add docstring | Daniel Micay | -0/+2 | |
| 2013-03-26 | librustc: Remove obsolete syntax | Patrick Walton | -1/+1 | |
| 2013-03-26 | librustc: Enforce that `extern mod` directives come first, then `use` ↵ | Patrick Walton | -2/+2 | |
| 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 | -50/+57 | |
| 2013-03-26 | librustc: Remove all uses of the old `[T * N]` fixed-length vector syntax | Patrick Walton | -3/+3 | |
| 2013-03-26 | libcore: Change `[const T]` to `const [T]` everywhere | Patrick Walton | -16/+23 | |
| 2013-03-26 | option: rm functions that duplicate methods | Daniel Micay | -7/+6 | |
| 2013-03-26 | std: Remove the oldmap module | Alex Crichton | -389/+0 | |
| 2013-03-26 | Remove unused imports throughout | Alex Crichton | -5/+0 | |
| 2013-03-26 | Isolated bug, static vector seems to behave differently than fixed sized one | Marvin Löbel | -1/+1 | |
| 2013-03-26 | Switched over a bunch of splitting funktions to non-allocating iterators | Marvin Löbel | -23/+31 | |
| 2013-03-26 | pre-rebase commit | Marvin Löbel | -2/+17 | |
| 2013-03-25 | auto merge of #5528 : thestinger/rust/find_mut, r=brson | bors | -5/+62 | |
| 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 | auto merge of #5525 : dbaupp/rust/minor_fixups, r=graydon | bors | -1/+0 | |
| 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 | auto merge of #5513 : apasel422/rust/deriving, r=luqmana | bors | -39/+4 | |
| This removes some explicit implementations of `Eq` in favor of `#[deriving(Eq)]` and derives `Clone` for a few core types. | ||||
| 2013-03-25 | auto merge of #5509 : thestinger/rust/oldmap, r=brson | bors | -335/+28 | |
| The reasoning for doing it this way is that it's much easier to transition method-by-method to the `Map` API than trying to do the migration all at once. I found an issue unrelated to my changes in one of the run-fail tests - if it uses `LinearMap`, it still fails but exits with 0. I xfailed it for now and opened [an issue](https://github.com/mozilla/rust/issues/5512), because it's not caused by these changes. | ||||
| 2013-03-25 | Merge remote-tracking branch 'brson/rt' | Brian Anderson | -16/+1935 | |
| Conflicts: src/libcore/rt/context.rs src/libcore/rt/sched.rs src/libcore/rt/thread.rs src/libcore/rt/uv.rs | ||||
| 2013-03-24 | expose find_mut in the Map trait | Daniel Micay | -18/+18 | |
| 2013-03-24 | smallintmap: add find_mut method | Daniel Micay | -2/+28 | |
| 2013-03-24 | treemap: add a find_mut method | Daniel Micay | -3/+34 | |
| 2013-03-25 | Kill some warnings: unused imports and old #[deny(..)]s. | Huon Wilson | -1/+0 | |
| 2013-03-23 | replace impls with `deriving` where applicable | Andrew Paseltiner | -39/+4 | |
| 2013-03-23 | turn std::oldmap into a wrapper around LinearMap | Daniel Micay | -335/+28 | |
| 2013-03-22 | librustc: Add explicit lifetime binders and new lifetime notation in ↵ | Patrick Walton | -53/+55 | |
| core/std/syntax/rustc | ||||
| 2013-03-22 | librustc: Remove the `const` declaration form everywhere | Patrick Walton | -202/+202 | |
| 2013-03-22 | remove obsolete purity workarounds | Daniel Micay | -117/+101 | |
| 2013-03-22 | libstd: Remove all uses of `pure` from libstd. rs=depure | Patrick Walton | -353/+353 | |
| 2013-03-22 | librustc: Remove all uses of `static` from functions. rs=destatic | Patrick Walton | -86/+87 | |
