summary refs log tree commit diff
path: root/src/libsyntax/ext/build.rs
AgeCommit message (Collapse)AuthorLines
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-6/+4
2014-03-27serialize: use ResultSean McArthur-0/+48
All of Decoder and Encoder's methods now return a Result. Encodable.encode() and Decodable.decode() return a Result as well. fixes #12292
2014-03-22syntax: Fix fallout of removing get()Alex Crichton-1/+1
2014-03-22Migrate all users of opt_vec to owned_slice, delete opt_vec.Huon Wilson-18/+15
syntax::opt_vec is now entirely unused, and so can go.
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-2/+0
It's now in the prelude.
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-2/+2
Closes #12771
2014-03-17De-@ codemap and diagnostic.Eduard Burtescu-1/+1
2014-03-12Changed lists of lifetimes in ast and ty to use Vec instead of OptVec.Felix S. Klock II-6/+6
There is a broader revision (that does this across the board) pending in #12675, but that is awaiting the arrival of more data (to decide whether to keep OptVec alive by using a non-Vec internally). For this code, the representation of lifetime lists needs to be the same in both ScopeChain and in the ast and ty structures. So it seemed cleanest to just use `vec_ng::Vec`, now that it has a cheaper empty representation than the current `vec` code.
2014-03-12alpha-rename .ident to .name in Lifetime, including in rustdoc.Felix S. Klock II-2/+2
2014-03-03syntax: make match arms store the expr directly.Huon Wilson-1/+1
Previously `ast::Arm` was always storing a single `ast::Expr` wrapped in an `ast::Block` (for historical reasons, AIUI), so we might as just store that expr directly. Closes #3085.
2014-03-01libsyntax: Fix errors arising from the automated `~[T]` conversionPatrick Walton-11/+22
2014-03-01libsyntax: Mechanically change `~[T]` to `Vec<T>`Patrick Walton-117/+113
2014-02-26Replace callee_id with information stored in method_map.Eduard Burtescu-5/+4
2014-02-22auto merge of #12451 : edwardw/rust/ident-2-name, r=cmrbors-2/+2
Closes #7743.
2014-02-21syntax: add syntax extension helper to make simple view itemsErick Tryzelaar-0/+17
2014-02-22Represent lifetimes as Names instead of IdentsEdward Wang-2/+2
Closes #7743.
2014-02-14Removed the obsolete ast::CallSugar (previously used by `do`).Eduard Burtescu-4/+3
2014-02-07Removed @self and @Trait.Eduard Burtescu-5/+0
2014-02-02libsyntax: De-`@str` literal strings in the ASTPatrick Walton-8/+12
2014-02-02libsyntax: Introduce an `InternedString` type to reduce `@str` in thePatrick Walton-6/+22
compiler and use it for attributes
2014-01-30Implement default type parameters in generics.Eduard Burtescu-3/+14
2014-01-27Demote self to an (almost) regular argument and remove the env param.Eduard Burtescu-4/+5
Fixes #10667 and closes #10259.
2014-01-26Removed all instances of XXX in preparation for relaxing of FIXME ruleSalem Talha-3/+3
2014-01-21[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behaviorSimon Sapin-1/+1
2014-01-16Load macros from external modulesSteven Fackler-2/+2
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-108/+99
2014-01-03librustc: Remove `@mut` support from the parserPatrick Walton-5/+6
2014-01-01syntax::codemap: Add static DUMMY_SPklutzy-5/+5
It replaces `dummy_sp()`.
2013-12-29Start passing around &mut ExtCtxtSteven Fackler-3/+3
2013-12-29Make ast_fold take &mut selfSteven Fackler-2/+2
2013-12-28Stop using @ExtCtxtSteven Fackler-9/+9
2013-12-24Test fixes and rebase problemsAlex Crichton-1/+0
Note that this removes a number of run-pass tests which are exercising behavior of the old runtime. This functionality no longer exists and is thoroughly tested inside of libgreen and libnative. There isn't really the notion of "starting the runtime" any more. The major notion now is "bootstrapping the initial task".
2013-12-17Remove obsolete mutability from ast::TySeo Sanghyeon-1/+1
2013-12-01Box Block, fn_decl, variant and Ty in the AST, as they were inflating ↵Eduard Burtescu-81/+83
critical enum sizes.
2013-11-26libsyntax: Remove all non-`proc` `do` syntax.Patrick Walton-4/+4
2013-11-08Generalize AST and ty::Generics to accept multiple lifetimes.Niko Matsakis-7/+7
2013-11-04libsyntax/librustc: Allow calling variadic foreign functions.Luqman Aden-0/+1
2013-10-30Prepared `std::sys` for removal, and made `begin_unwind` simplerMarvin Löbel-3/+3
- `begin_unwind` is now generic over any `T: Any + Send`. - Every value you fail with gets boxed as an `~Any`. - Because of implementation details, `&'static str` and `~str` are still handled specially behind the scenes. - Changed the big macro source string in libsyntax to a raw string literal, and enabled doc comments there.
2013-10-28Field identifiers now include specific spans (Closes #8263).Joshua Yanovski-1/+1
2013-10-25libsyntax/librustc: Allow mut qualifier in patterns.Luqman Aden-6/+11
2013-10-09option: rewrite the API to use compositionDaniel Micay-1/+1
2013-10-08add new enum ast::StrStyle as field to ast::lit_strBenjamin Herr-1/+1
For the benefit of the pretty printer we want to keep track of how string literals in the ast were originally represented in the source code. This commit changes parser functions so they don't extract strings from the token stream without at least also returning what style of string literal it was. This is stored in the resulting ast node for string literals, obviously, for the package id in `extern mod = r"package id"` view items, for the inline asm in `asm!()` invocations. For `asm!()`'s other arguments or for `extern "Rust" fn()` items, I just the style of string, because it seemed disproportionally cumbersome to thread that information through the string processing that happens with those string literals, given the limited advantage raw string literals would provide in these positions. The other syntax extensions don't seem to store passed string literals in the ast, so they also discard the style of strings they parse.
2013-10-02syntax: swap from .span_fatal to .span_err in #[deriving(FromPrimitive)]Erick Tryzelaar-2/+7
2013-10-02syntax: Add #[deriving(FromPrimitive)] syntax extensionErick Tryzelaar-0/+27
Right now this only works for c-style enums.
2013-09-24Correctly encode item visibility in metadataAlex Crichton-1/+1
This fixes private statics and functions from being usable cross-crates, along with some bad privacy error messages. This is a reopening of #8365 with all the privacy checks in privacy.rs instead of resolve.rs (where they should be anyway). These maps of exported items will hopefully get used for generating documentation by rustdoc Closes #8592
2013-09-23librustc: Fix merge fallout.Patrick Walton-1/+1
2013-09-23librustc: Change fold to use traits instead of `@fn`.Patrick Walton-0/+30
2013-09-18Register new snapshotsAlex Crichton-14/+0
2013-09-10Delay assignment of node ids until after expansion. Ensures that each AST nodeNiko Matsakis-48/+24
has a unique id. Fixes numerous bugs in macro expansion and deriving. Add two representative tests. Fixes #7971 Fixes #6304 Fixes #8367 Fixes #8754 Fixes #8852 Fixes #2543 Fixes #7654
2013-09-03Modernized a few more types in syntax::astMarvin Löbel-182/+182