about summary refs log tree commit diff
path: root/src/libsyntax/ext/build.rs
AgeCommit message (Collapse)AuthorLines
2014-06-02syntax: Remove use of `pub use` globsklutzy-2/+2
`quote_expr!` now injects two more (priv) `use` globs. This may cause extra unused_imports warning.
2014-05-26syntax: Add a source field to `Local` for tracking if it comes from `let`s ↵Huon Wilson-0/+2
or `for`s.
2014-05-24Changes from feedbackSteven Fackler-4/+4
2014-05-24Add AttrId to Attribute_Steven Fackler-2/+4
2014-05-08libsyntax: Remove uses of `~str` from libsyntax, and fix falloutPatrick Walton-1/+3
2014-04-28auto merge of #13791 : lifthrasiir/rust/mod-inner-span, r=huonwbors-2/+3
This PR is primarily motivated by (and fixes) #12926. We currently only have a span for the individual item itself and not for the referred contents. This normally does not cause a problem since both are located in the same file; it *is* possible that the contained statement or item is located in the other file (the syntax extension can do that), but even in that case the syntax extension should be located in the same file as the item. The module item (i.e. `mod foo;`) is the only exception here, and thus warrants a special treatment. Rustdoc would now distinguish `mod foo;` from `mod foo {...}` by checking if the span for the module item and module contents is in different files. If it's the case, we'd prefer module contents over module item. There are alternative strategies, but as noted above we will have some corner cases if we don't record the contents span explicitly.
2014-04-27syntax: `Mod` records the span for inner contents.Kang Seonghoon-2/+3
this is useful when the module item and module contents are defined from different files (like rustdoc). in most cases the original span for the module item would be used; in other cases, the span for module contents is available separately at the `inner` field.
2014-04-26syntax: ViewItemUse no longer contains multiple view paths.Kang Seonghoon-12/+12
it reflected the obsolete syntax `use a, b, c;` and did not make past the parser (though it was a non-fatal error so we can continue). this legacy affected many portions of rustc and rustdoc as well, so this commit cleans them up altogether.
2014-04-24auto merge of #13713 : edwardw/rust/methodcall-span, r=alexcrichtonbors-2/+3
Specifically, the method parameter cardinality mismatch or missing method error message span now gets method itself exactly. It was the whole expression. Closes #9390 Closes #13684 Closes #13709
2014-04-23Allow attributes on match armsSteven Fackler-0/+1
RFC: 0008-match-arm-attributes
2014-04-24Calibrate span for method call error messagesEdward Wang-2/+3
Specifically, the method parameter cardinality mismatch or missing method error message span now gets method itself exactly. It was the whole expression. Closes #9390 Closes #13684 Closes #13709
2014-04-23Support unsized types with the `type` keywordNick Cameron-0/+3
2014-04-23Add a span to ast::TyParamNick Cameron-1/+4
2014-04-10Renamed ast::Purity to ast::FnStyle and ast::ImpureFn to ast::NormalFn and ↵Kasey Carrothers-1/+1
updated associated variable and function names.
2014-04-04syntax: remove obsolete mutability from ExprVec and ExprRepeat.Eduard Burtescu-1/+1
2014-04-03syntax: Remove AbiSet, use one AbiAlex Crichton-2/+2
This change removes the AbiSet from the AST, converting all usage to have just one Abi value. The current scheme selects a relevant ABI given a list of ABIs based on the target architecture and how relevant each ABI is to that architecture. Instead of this mildly complicated scheme, only one ABI will be allowed in abi strings, and pseudo-abis will be created for special cases as necessary. For example the "system" abi exists for stdcall on win32 and C on win64. Closes #10049
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.