summary refs log tree commit diff
path: root/src/libstd/json.rs
AgeCommit message (Collapse)AuthorLines
2013-03-30std: add more json decoder tests.Erick Tryzelaar-12/+124
2013-03-30std: clean up the json pretty printer testsErick Tryzelaar-88/+71
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-13/+0
2013-03-29Register snapshotsBrian Anderson-13/+0
2013-03-29std: fix json deserializing vectors and a testErick Tryzelaar-6/+4
2013-03-29std: add Encoder::emit_map and Decoder::read_mapErick Tryzelaar-85/+136
2013-03-29std: remove Encoder::read_rec and Decoder::emit_recErick Tryzelaar-33/+18
2013-03-29std: remove Encoder::emit_tup{,_elt} and Decoder::read_tup{,_elt}Erick Tryzelaar-31/+0
2013-03-29std: remove Encoder::emit_{owned,managed}_vec and ↵Erick Tryzelaar-35/+12
Decoder::read_{owned,managed}_vec
2013-03-29std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed}Erick Tryzelaar-4/+0
2013-03-29std: remove Encoder::emit_{owned,managed}_str and ↵Erick Tryzelaar-38/+8
Decoder::read_{owned,managed}_str
2013-03-28std: change Decoder::read_option to return a generic typeErick Tryzelaar-3/+3
This allows read_option to be used with a custom option type instead of just core::Option.
2013-03-28std: change Decoder::read_option to return a generic typeErick Tryzelaar-3/+3
This allows read_option to be used with a custom option type instead of just core::Option.
2013-03-27std: add some better failure msgs to jsonErick Tryzelaar-3/+3
2013-03-27std: add tests for decoding json enumsErick Tryzelaar-1/+14
2013-03-27std: Decode::read_enum_variant should pass in the variant namesErick Tryzelaar-2/+25
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-27std: add option type directly to serialize::{En,De}codeErick Tryzelaar-20/+18
2013-03-27std: change default json enum encoder to use strings or a flat vecErick Tryzelaar-41/+16
2013-03-27std: Add tests for json decoding optionsErick Tryzelaar-0/+18
2013-03-27std: fix json PrettyEncoder and add testsErick Tryzelaar-33/+220
2013-03-27std: change fail_unless to assert_eq in json.rsErick Tryzelaar-133/+128
2013-03-27std: clean json test importsErick Tryzelaar-6/+2
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-3/+3
2013-03-26Remove unused imports throughoutAlex Crichton-1/+0
2013-03-26Switched over a bunch of splitting funktions to non-allocating iteratorsMarvin Löbel-1/+2
2013-03-23replace impls with `deriving` where applicableAndrew Paseltiner-9/+1
2013-03-22librustc: Add explicit lifetime binders and new lifetime notation in ↵Patrick Walton-2/+2
core/std/syntax/rustc
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-11/+11
2013-03-21auto merge of #5407 : jbclements/rust/add-assert-eq-macro, r=jbclementsbors-17/+3
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-20change some uses of fail_unless to assert_eqJohn Clements-17/+3
2013-03-20core: add str::each{,i}_reverseErick Tryzelaar-11/+5
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-3/+7
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-3/+3
notation. rs=delifetiming
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-10/+10
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-43/+43
2013-03-08Fix dvec-related fallout in testsAlex Crichton-6/+3
2013-03-08std: Remove uses of DVecAlex Crichton-1/+0
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-144/+177
2013-03-07De-implicit-self libstdBen Striegel-43/+43
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-3/+3
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-05core: convert vec::{last,last_opt} to return referencesErick Tryzelaar-1/+1
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-0/+1
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-4/+4
2013-02-21Cleanup, commenting, trivial renamingJohn Clements-2/+0
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-8/+8
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-4/+4
slipped through. r=tjc
2013-02-15libstd: Get rid of `move`.Luqman Aden-29/+29
2013-02-14auto merge of #4927 : sanxiyn/rust/remove-dvec, r=catamorphismbors-3/+3
2013-02-14auto merge of #4934 : nickdesaulniers/rust/issue4524cleanup, r=brsonbors-2/+2
review? @brson Issue #4524
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-29/+29
rs=implflipping