about summary refs log tree commit diff
path: root/src/libsyntax/ext/auto_encode.rs
AgeCommit message (Collapse)AuthorLines
2013-03-01Avoid calling to_vec() unnecessarily in parser.Niko Matsakis-2/+2
Also, rename the OptVec-to-vector conversion method to opt_vec::take_vec() and convert from a method into a fn because I fear strange bugs.
2013-03-01Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-5/+4
2013-02-28Remove legacy object creation mode, and convert remaining uses of itNiko Matsakis-5/+3
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-0/+1
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-48/+74
2013-02-27auto merge of #5141 : nikomatsakis/rust/region-syntax-expl-lifetimes, ↵bors-48/+74
r=nikomatsakis 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 r? @graydon
2013-02-27Introduce lifetime declarations into the lists of type parameters.Niko Matsakis-48/+74
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-27Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-21/+25
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-1/+1
2013-02-26libsyntax: remove vecs_implicitly_copyable from the syntax extensionsErick Tryzelaar-14/+20
2013-02-26auto merge of #5120 : jbclements/rust/macros-have-scope, r=pcwaltonbors-16/+20
r? After this patch, macros declared in a module, function, or block can only be used inside of that module, function or block, with the exception of modules declared with the #[macro_escape] attribute; these modules allow macros to escape, and can be used as a limited macro export mechanism. This pull request also includes miscellaneous comments, lots of new test cases, a few renamings, and a few as-yet-unused data definitions for hygiene.
2013-02-26Adds (more) test cases for auto_encode.John Clements-16/+20
2013-02-26libsyntax: Remove a mutable field from the tests. rs=demutingPatrick Walton-4/+4
2013-02-25libsyntax: add explicit modes where required to copy strs/vecsErick Tryzelaar-21/+30
2013-02-25libsyntax: Convert ast::attribute_ to store a @meta_itemErick Tryzelaar-2/+2
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-3/+3
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-2/+2
2013-02-19libsyntax: change attr:get_attr_name to take a refErick Tryzelaar-2/+2
2013-02-19libsyntax: make enum variants take refsErick Tryzelaar-17/+17
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-2/+2
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-5/+5
2013-02-13retabbingJohn Clements-59/+60
2013-02-12added rather elaborate test frameworkJohn Clements-17/+126
2013-02-09tidyJohn Clements-5/+7
2013-02-09fix typos in sample code, add enum to json encoder, add test caseJohn Clements-11/+50
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-02-03rename map -> oldmap and mark it as deprecatedDaniel Micay-2/+2
LinearMap is quite a bit faster, and is fully owned/sendable without requiring copies. The older std::map also doesn't use explicit self and relies on mutable fields.
2013-02-01Merge remote-tracking branch 'nickdesaulniers/issue4524' into nocomm1Brian Anderson-28/+33
2013-02-01Remove fail keyword from lexer & parser and clean up remaining calls toNick Desaulniers-28/+33
fail Fix merge conflicts - Issue 4524
2013-01-31test cases, cleanupJohn Clements-8/+8
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-6/+6
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-5/+4
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-5/+2
2013-01-28Link the lifetimes of regions resulting from borrows of theNiko Matsakis-1/+1
contents of other borrowed pointers to the lifetimes of the borrowed value. Fixes #3148. r=catamorphism
2013-01-24remove support for records from auto_encodeErick Tryzelaar-182/+75
2013-01-22Add is_mutbl field to argSeo Sanghyeon-0/+3
2013-01-20Convert many libsyntax records into structsErick Tryzelaar-5/+9
Specifically: ast_map::ctx ast_util::id_range diagnostic::{handler_t,codemap_t} auto_encode::field ext::base::{macro_def,syntax_expander_tt,syntax_expander_tt_item} ext::pipes::proto::next_state
2013-01-20convert the remaining ast record types into structsErick Tryzelaar-11/+11
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-14/+23
2013-01-20convert ast::expr into a structErick Tryzelaar-2/+6
2013-01-14convert ast::{field_,capture_item_,mt} and middle::ty::mt into structsErick Tryzelaar-3/+7
2013-01-14Convert ast::{pat,field_pat,local_,arm} into structsErick Tryzelaar-30/+42
2013-01-14convert ast::blk_ into a structErick Tryzelaar-12/+20
2013-01-14convert ast::struct_def to a structErick Tryzelaar-2/+2
2013-01-14convert ast::item into a structErick Tryzelaar-5/+9
2013-01-14change ast::ty_param into a struct.Erick Tryzelaar-2/+2
2013-01-14Change ast::path into a struct.Erick Tryzelaar-7/+29
2013-01-14Merge remote-tracking branch 'mneumann/f-serialize'Brian Anderson-2/+4
2013-01-10librustc: Implement `&static` as the replacement for `Durable`. r=nmatsakisPatrick Walton-2/+2
2013-01-09core: rename vec.filter to vec.filteredErick Tryzelaar-2/+2