summary refs log tree commit diff
path: root/src/libsyntax/ext/build.rs
AgeCommit message (Collapse)AuthorLines
2013-03-27syntax: Remove deprecated expr_vstore_fixedErick Tryzelaar-5/+0
2013-03-26Rip out old code that still structured method calls as aNiko Matsakis-0/+7
expr_call(expr_field(...)) rather than an expr_method_call. There is probably more such code in trans that should be removed.
2013-03-22Build up the result of fmt! in a buffer instead of a vectorAlex Crichton-0/+3
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-44/+45
2013-03-07libsyntax: Remove struct literal expressions from the compilerPatrick Walton-7/+0
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-02-28Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-3/+12
2013-02-27Introduce lifetime declarations into the lists of type parameters.Niko Matsakis-3/+12
Major changes are: - replace ~[ty_param] with Generics structure, which includes both OptVec<TyParam> and OptVec<Lifetime>; - the use of syntax::opt_vec to avoid allocation for empty lists; cc #4846
2013-02-26libsyntax: remove vecs_implicitly_copyable from the syntax extensionsErick Tryzelaar-30/+38
2013-02-21Get rid of structural records in libsyntax and the last bit in librustc.Luqman Aden-19/+14
2013-02-17libsyntax: Update view_item_use/import to reflect actual usageLuqman Aden-1/+1
2013-02-15libsyntax: Get rid of uses of `move` and don't parse it.Luqman Aden-11/+11
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-1/+1
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-31test cases, cleanupJohn Clements-12/+13
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-4/+3
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2013-01-29libsyntax: De-export libsyntax. rs=deexportingPatrick Walton-110/+124
2013-01-28Link the lifetimes of regions resulting from borrows of theNiko Matsakis-1/+7
contents of other borrowed pointers to the lifetimes of the borrowed value. Fixes #3148. r=catamorphism
2013-01-24Convert extfmt::rt::Conv into a structErick Tryzelaar-0/+9
2013-01-22Add is_mutbl field to argSeo Sanghyeon-0/+1
2013-01-20convert the remaining ast record types into structsErick Tryzelaar-2/+2
These are: region,arg,fn_decl,method,_mod,foreign_mod, variant_arg,enum_def_,variant_,trait_ref.
2013-01-20convert ast::ty into a structErick Tryzelaar-3/+3
2013-01-20convert ast::expr into a structErick Tryzelaar-3/+6
2013-01-14convert ast::{field_,capture_item_,mt} and middle::ty::mt into structsErick Tryzelaar-2/+4
2013-01-14Convert ast::{pat,field_pat,local_,arm} into structsErick Tryzelaar-12/+19
2013-01-14convert ast::blk_ into a structErick Tryzelaar-22/+28
2013-01-14convert ast::attribute_ and ast::view_item to a structErick Tryzelaar-4/+4
2013-01-14change ast::ty_param into a struct.Erick Tryzelaar-1/+1
2013-01-14Change ast::path into a struct.Erick Tryzelaar-6/+15
2013-01-09syntax: convert ast::spanned into a structErick Tryzelaar-23/+26
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+29
contain at least two components. r=graydon
2012-12-13libsyntax: Implement `deriving` for struct-like enum variants. r=brsonPatrick Walton-0/+8
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-1/+1
2012-12-07syntax: point quote tokens at the site of quote-using-extension invocation.Graydon Hoare-0/+18
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-21libsyntax: Implement `deriving` correctly for type-parameterized structs and ↵Patrick Walton-0/+12
enums. r=brson
2012-11-21libsyntax: Implement deriving via a syntax extension for the `IterBytes` ↵Patrick Walton-0/+47
trait. r=brson
2012-11-21libsyntax: Implement `deriving` for enums with N-ary variants. r=brsonPatrick Walton-2/+13
2012-11-20syntax: switch tt quoter to emit ~[tt], not tt.Graydon Hoare-0/+5
2012-11-20rustc: Implement "deriving" for monomorphic structs via a syntax extension. ↵Patrick Walton-0/+20
r=brson
2012-11-13rustc: add new token-tree based quasiquoter.Graydon Hoare-17/+53
2012-09-28Demode extfmtTim Chevalier-0/+4
Needs a snapshot before this can be completed, because I changed the mode for conv_poly.
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-1/+1
2012-09-11Introduce auto adjustment table to subsume autoderef/autoref/borrowings.Niko Matsakis-4/+6
Fixes #3261 Fixes #3443
2012-09-04libsyntax: "import" -> "use"Patrick Walton-2/+2
2012-08-26Camel case the option typeBrian Anderson-3/+3
2012-08-01Convert ret to returnBrian Anderson-7/+7
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-2/+2
#2907.