about summary refs log tree commit diff
path: root/src/librustc/front
AgeCommit message (Collapse)AuthorLines
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-4/+4
2013-02-19libsyntax: change attr:get_attr_name to take a refErick Tryzelaar-1/+1
2013-02-17libsyntax: Update view_item_use/import to reflect actual usageLuqman Aden-4/+5
2013-02-13rustc and std: teach about #[bench], modernize to use quote_expr! some.Graydon Hoare-307/+151
2013-02-07librustc: Lots of de-muting. rs=demutingPatrick Walton-122/+144
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-79/+59
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-31test cases, cleanupJohn Clements-7/+10
2013-01-31Workaround for #4717: pad contents of ast. rs=breakageNiko Matsakis-1/+1
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-3/+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-29librustc: De-export front, borrowck, and typeck/check. rs=deexportingPatrick Walton-9/+4
2013-01-29librustc: De-export back, lib, and util. rs=deexportingPatrick Walton-18/+9
2013-01-29librustc: De-implicit-self the visitor. r=graydonPatrick Walton-66/+66
2013-01-24replace ConstVector trait with the Container traitDaniel Micay-3/+3
2013-01-24librustc: Make C functions unsafePatrick Walton-1/+3
2013-01-20convert the remaining ast record types into structsErick Tryzelaar-29/+39
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/+26
2013-01-20convert ast::expr into a structErick Tryzelaar-78/+101
2013-01-18Comments: turn XXXes into FIXMEsTim Chevalier-2/+2
2013-01-16Minor cleanup and eliminate a bad copyTim Chevalier-7/+5
2013-01-15Merge pull request #4497 from ILyoan/i4488Brian Anderson-12/+8
When building a test runner, don't remove the main function
2013-01-15when test, just remove #[main] attrILyoan-12/+8
2013-01-14convert ast::{field_,capture_item_,mt} and middle::ty::mt into structsErick Tryzelaar-15/+22
2013-01-14Convert ast::{pat,field_pat,local_,arm} into structsErick Tryzelaar-8/+13
2013-01-14convert ast::crate_ into a struct.Erick Tryzelaar-4/+10
2013-01-14convert ast::attribute_ and ast::view_item to a structErick Tryzelaar-21/+20
2013-01-14convert ast::item into a structErick Tryzelaar-21/+24
2013-01-14Change ast::path into a struct.Erick Tryzelaar-3/+11
2013-01-14syntax/rustc: Eliminate some bad copiesTim Chevalier-1/+1
r=pcwalton
2013-01-14allowing the entry point name to be something other than mainILyoan-5/+4
add build tests
2013-01-11Make ast_util::path_name_i take a slice vector, eliminate a bad copyTim Chevalier-2/+1
2013-01-10librustc: Implement a #[no_mangle] attribute to suppress name mangling. r=brsonPatrick Walton-2/+1
This is very helpful for SDL, as SDL wants you to define a function named `SDL_main`.
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-8/+14
- 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-09core: rename vec.filter to vec.filteredErick Tryzelaar-2/+2
2013-01-09syntax: convert ast::spanned into a structErick Tryzelaar-5/+8
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-4/+16
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-16/+4
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-4/+16
module scope. r=tjc
2013-01-08Inject std when --test. #1127, #3241Brian Anderson-10/+42
2013-01-07librustc: Make vectors no longer implicitly copyable in rustc. r=graydonPatrick Walton-42/+56
~20% perf win for trans on -O0, with other minor improvements across the board. No effect on -O2.
2012-12-27librustc: Fix the test runner, the condition system, and core test. rs=bustagePatrick Walton-5/+9
2012-12-27librustc: Fix some unresolved imports in the test runner. rs=bustagePatrick Walton-1/+1
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-34/+72
contain at least two components. r=graydon
2012-12-18core: add macro_rules! for "condition! { c: in -> out; }".Graydon Hoare-1/+1
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-1/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+50
2012-11-29librustc: Eliminate most expressions of the form `a.b()` that are not method ↵Patrick Walton-6/+6
calls. rs=refactoring
2012-11-28librustc: Parse `extern "C" { ... }`. r=brsonPatrick Walton-0/+1
2012-11-14rustc: Only strip out the main function when generating test executable, not libBrian Anderson-2/+3
2012-11-14rustc: Generate test code when in the 'test' configBrian Anderson-1/+7
2012-11-14librustc: Require the #[derivable] attribute, remove the significance of ↵Patrick Walton-2/+2
"impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson