about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
AgeCommit message (Collapse)AuthorLines
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-24/+24
slipped through. r=tjc
2013-02-13auto merge of #4922 : jbclements/rust/add-deriving-eq-to-asts, r=catamorphismbors-515/+122
r? Apply deriving_eq to the data structures in ast.rs, and get rid of the custom definitions of eq that were everywhere. resulting ast.rs is about 400 lines shorter. Also: add a few test cases and a bunch of comments. Also: change ast_ty_to_ty_cache to use node ids rather than ast::ty's. I believe this was a suggestion related to my changes, and it appears to pass all tests. Also: tiny doc fix, remove references to crate keywords.
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-13add test caseJohn Clements-1/+30
2013-02-13finish deriving_eq in astJohn Clements-11/+2
2013-02-13deriving-eq all over astJohn Clements-502/+80
2013-02-13Commenting, test cases, cleanupJohn Clements-1/+10
2013-02-08Add and lex LIFETIME tokensNiko Matsakis-5/+1
cc #4846
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-21/+61
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-03core: convert ToStr::to_str to take explicit &selfErick Tryzelaar-10/+10
2013-02-01Merge remote-tracking branch 'nickdesaulniers/issue4524' into nocomm1Brian Anderson-2/+1
2013-02-01Remove fail keyword from lexer & parser and clean up remaining calls toNick Desaulniers-2/+1
fail Fix merge conflicts - Issue 4524
2013-01-31test cases, cleanupJohn Clements-5/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-31Workaround for #4717: pad contents of ast. rs=breakageNiko Matsakis-1/+4
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-57/+8
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-30librustc: Remove legacy exports from the language. r=brsonPatrick Walton-1/+0
2013-01-29libsyntax: De-export a lot of libsyntax. rs=deëxportingPatrick Walton-157/+157
2013-01-28Add to_str() definitions for some AST typesNiko Matsakis-0/+18
r=brson
2013-01-23renaming to adhere to conventionsJohn Clements-2/+0
2013-01-22Add is_mutbl field to def_argSeo Sanghyeon-3/+4
2013-01-22Add is_mutbl field to argSeo Sanghyeon-1/+1
2013-01-20convert the remaining ast record types into structsErick Tryzelaar-22/+58
These are: region,arg,fn_decl,method,_mod,foreign_mod, variant_arg,enum_def_,variant_,trait_ref.
2013-01-20convert ast::{ty_field_,ty_method} into a structErick Tryzelaar-4/+14
2013-01-20convert ast::ty into a structErick Tryzelaar-1/+5
2013-01-20convert ast::expr into a structErick Tryzelaar-2/+8
2013-01-14convert ast::{field_,capture_item_,mt} and middle::ty::mt into structsErick Tryzelaar-5/+12
2013-01-14Convert ast::{pat,field_pat,local_,arm} into structsErick Tryzelaar-5/+21
2013-01-14convert ast::blk_ into a structErick Tryzelaar-5/+7
2013-01-14convert ast::crate_ into a struct.Erick Tryzelaar-4/+5
2013-01-14convert ast::pat_list_ident_ to a structErick Tryzelaar-1/+4
2013-01-14convert ast::attribute_ and ast::view_item to a structErick Tryzelaar-3/+11
2013-01-14convert ast::struct_field_ into a structErick Tryzelaar-3/+3
2013-01-14convert ast::struct_def to a structErick Tryzelaar-2/+2
2013-01-14convert ast::item into a structErick Tryzelaar-3/+8
2013-01-14convert ast::struct_dtor_ into a structErick Tryzelaar-4/+6
2013-01-14convert ast::foreign_item to a structErick Tryzelaar-7/+8
2013-01-14change ast::ty_param into a struct.Erick Tryzelaar-1/+5
2013-01-14Convert ast::def_id into a struct.Erick Tryzelaar-1/+4
2013-01-14Change ast::path into a struct.Erick Tryzelaar-5/+7
2013-01-14removed self-import (minor cleanup)John Clements-8/+7
2013-01-10librustc: Implement `&static` as the replacement for `Durable`. r=nmatsakisPatrick Walton-1/+4
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-14/+24
- Make `extern fn()` assignable to any closure type, rather than a subtype. - Remove unused int_ty_set and float_ty_set - Refactor variable unification and make it more DRY - Do fn sub/lub/glb on the level of fn_sig - Rename infer::to_str::ToStr to infer::to_str::InferStr - Capitalize names of various types - Correct hashing of FnMeta - Convert various records-of-fns into structs-of-fns. This is both eliminating use of deprecated features and more forwards compatible with fn reform. r=pcwalton
2013-01-09syntax: convert ast::spanned into a structErick Tryzelaar-2/+1
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-7/+8
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-8/+7
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-7/+8
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-1/+8
contain at least two components. r=graydon
2012-12-17Switch from serialization to std::serialize. (snapshot)Erick Tryzelaar-174/+171
2012-12-17Add support for destructuring vectors in match expressionsJakub Wieczorek-0/+1