about summary refs log tree commit diff
path: root/src/libstd/ebml.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-957/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Register snapshotsBrian Anderson-41/+0
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-5/+5
2013-05-18rustc: relax limits on (u)int type limit lint. Fixes #6130.Huon Wilson-1/+1
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-3/+2
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-7/+4
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-26/+26
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-11Warning policeTim Chevalier-7/+0
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-0/+33
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10rustc: Use the new `for` protocolAlex Crichton-0/+33
2013-05-09improve MIPS backend and implement segmented stacksJyun-Yan You-0/+1
2013-05-08libstd: Remove some residual mutable fieldsPatrick Walton-1/+21
2013-05-07auto merge of #6276 : brson/rust/issue-6122, r=graydonbors-0/+1
2013-05-06std: Workaround bustage on incoming. #6122Brian Anderson-0/+1
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-149/+318
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-04Register snapshotsBrian Anderson-539/+0
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-64/+754
mutable fields in the process
2013-04-30allover: numerous unused muts etcNiko Matsakis-1/+1
2013-04-30adapt to snapshotNiko Matsakis-18/+0
2013-04-27only use #[no_core] in libcoreDaniel Micay-3/+0
2013-04-19libstd: Micro-optimize vuint_atPatrick Walton-4/+53
2013-04-10syntax: add {read,emit}_enum_struct_variant{,_field}Erick Tryzelaar-0/+24
2013-04-10std: add serialize {read,emit}_tuple{,_arg,_struct,_struct_arg}Erick Tryzelaar-0/+26
2013-04-10std: rename {read,emit}_field to {read,emit}_struct_fieldErick Tryzelaar-1/+19
2013-04-10std: clean up the order of {De,En}codable methodsErick Tryzelaar-25/+25
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-6/+6
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-30/+0
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-6/+6
2013-03-29Register snapshotsBrian Anderson-30/+0
2013-03-29Merge remote-tracking branch 'remotes/origin/incoming' into serialErick Tryzelaar-4/+4
2013-03-29std: add Encoder::emit_map and Decoder::read_mapErick Tryzelaar-0/+27
2013-03-29std: remove Encoder::read_rec and Decoder::emit_recErick Tryzelaar-6/+0
2013-03-29std: remove Encoder::emit_tup{,_elt} and Decoder::read_tup{,_elt}Erick Tryzelaar-13/+0
2013-03-29std: remove Encoder::emit_{owned,managed}_vec and ↵Erick Tryzelaar-23/+6
Decoder::read_{owned,managed}_vec
2013-03-29std: remove Encoder::emit_{owned,managed} and Decoder::read_{owned,managed}Erick Tryzelaar-14/+0
2013-03-29std: remove Encoder::emit_{owned,managed}_str and ↵Erick Tryzelaar-13/+2
Decoder::read_{owned,managed}_str
2013-03-28Removing unused importsAlex Crichton-4/+4
2013-03-28std: change Decoder::read_option to return a generic typeErick Tryzelaar-6/+6
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-6/+6
This allows read_option to be used with a custom option type instead of just core::Option.
2013-03-28auto merge of #5595 : catamorphism/rust/demoding, r=catamorphismbors-1/+0
2013-03-27auto merge of #5578 : erickt/rust/incoming, r=jbclements,ericktbors-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-27core: Remove unused importTim Chevalier-1/+0
2013-03-27Autoref the argument to the index operator (#4920)Niko Matsakis-5/+3
2013-03-27std: Decode::read_enum_variant should pass in the variant namesErick 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-27std: add option type directly to serialize::{En,De}codeErick Tryzelaar-2/+24
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-1/+1
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-1/+1
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-4/+4
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-35/+35
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-6/+6