about summary refs log tree commit diff
path: root/src/libsyntax/ext
AgeCommit message (Collapse)AuthorLines
2012-12-27Enhance auto_encode to take number of struct fieldsMichael Neumann-2/+4
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-19Remove serialize::traits submodule.Erick Tryzelaar-2/+0
2012-12-19Remove the old serialization codeErick Tryzelaar-1034/+0
Closes #3713.
2012-12-18core: add macro_rules! for "condition! { c: in -> out; }".Graydon Hoare-6/+24
2012-12-18Another tweak to auto_encode to only use trait-qualified static methodsBrian Anderson-0/+2
2012-12-18Merge commit 'erickt/incoming^' into kind-namesBrian Anderson-2/+2
2012-12-18Change auto_encode to call 'std::serialize::traits::Decode::decode'Brian Anderson-0/+2
2012-12-17Change iter::find's closure to take a refErick Tryzelaar-2/+2
2012-12-17Switch from serialization to std::serialize. (snapshot)Erick Tryzelaar-1/+1
2012-12-13Begin renaming serialization to std::serialize. (snapshot)Erick Tryzelaar-134/+1168
2012-12-13libsyntax: Implement `deriving` for struct-like enum variants. r=brsonPatrick Walton-16/+56
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-33/+26
2012-12-12syntax: remove remaining #syntaxext machinery. Close #3516.Graydon Hoare-221/+124
2012-12-12syntax: remove most code handling old-style syntax extensions.Graydon Hoare-844/+21
2012-12-12syntax: remove all remaining uses of #ast, and #ast / qquote itself.Graydon Hoare-375/+7
2012-12-11fix long line, r=tidypolice.Graydon Hoare-3/+4
2012-12-11Fix deriving for single-variant enumsBrian Anderson-20/+24
2012-12-10Remove un-needed code for obsolete classesTim Chevalier-6/+6
and rename "class" to "struct" everywhere possible (except local vars, I was too lazy for that) -- that is why this commit is so big. No review, just dead code removal and renaming. Closes #3515
2012-12-10Adjust the die macro to only accept ~str and to work in statement positionBrian Anderson-13/+2
2012-12-09Remove transitional codeBrian Anderson-135/+0
2012-12-07librustc: De-mode pattern bindings. r=nmatsakisPatrick Walton-1/+1
2012-12-07Remove impl_id from trait_ref. UnusedBrian Anderson-3/+1
2012-12-07syntax: stage0-guard uses of #ast, rewrite as quote_foo! in stage1,2.Graydon Hoare-97/+122
2012-12-07syntax: fix missing push in item macro expansionGraydon Hoare-5/+9
2012-12-07syntax: Permit splicing anything into a quote that implements ToTokens.Graydon Hoare-7/+190
2012-12-07syntax: fix quote_type! to quote_ty!Graydon Hoare-6/+6
2012-12-07syntax: point quote tokens at the site of quote-using-extension invocation.Graydon Hoare-89/+120
2012-12-07syntax: fix the accidental binding of interner state between parse and quote.Graydon Hoare-10/+6
2012-12-04librustc: Long lines. rs=rustbotPatrick Walton-8/+19
2012-12-04librustc: Implement moves based on type. r=nmatsakisPatrick Walton-2/+2
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-128/+128
rs=refactoring
2012-12-03core: rename box to managed. Close #4079.Graydon Hoare-1/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+250
2012-11-29impls of traits cannot define methods on the anonymous traitBrian Anderson-2/+9
2012-11-29librustc: Eliminate most expressions of the form `a.b()` that are not method ↵Patrick Walton-2/+2
calls. rs=refactoring
2012-11-29Properly sync macro_parser.rs after it escapes out to the Rust parser. ↵Paul Stansifer-9/+10
Closes #3201.
2012-11-29Fix trace_macros so that it works.Paul Stansifer-5/+9
2012-11-29Respect semicolons always when expanding statments.Paul Stansifer-11/+13
2012-11-29Distinguish `stmt_mac`s that are followed by semicolons and those that aren't.Paul Stansifer-4/+6
2012-11-29No longer parse the delimiters of the RHS of a macro as part of the expansion.Paul Stansifer-3/+10
2012-11-29Allow the expansion of old-style expr macros in stmt position.Paul Stansifer-0/+18
2012-11-29Use `biased_match!` to avoid over-deep indentation in expand.rs.Paul Stansifer-77/+89
2012-11-29Make it possible to expand stmt macros.Paul Stansifer-17/+72
2012-11-29Make it possible to invoke item macros without passing identifier arguments.Paul Stansifer-32/+50
2012-11-29Grammaticalinate an error message.Paul Stansifer-2/+2
2012-11-29Allow `macro_rules!` macros to expand to expressions or items.Paul Stansifer-5/+12
2012-11-28Remove uses of #[merge]Brian Anderson-67/+70
2012-11-28Merge remote-tracking branch 'erickt/time'Brian Anderson-2/+2
Conflicts: src/libstd/time.rs
2012-11-28Merge remote-tracking branch 'brson/companion' into incomingBrian Anderson-15/+12
Conflicts: src/compiletest/compiletest.rs src/libcargo/cargo.rs src/libcore/core.rs src/librustc/rustc.rs src/librustdoc/rustdoc.rc
2012-11-28Register snapshotsBrian Anderson-15/+0