about summary refs log tree commit diff
path: root/src/libsyntax/ext/pipes
AgeCommit message (Collapse)AuthorLines
2013-02-22libsyntax: De-mut the parser. rs=demutingPatrick Walton-23/+21
2013-02-22libsyntax: De-mut the pipe compilerPatrick Walton-35/+37
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-21/+23
2013-02-21Get rid of structural records in libsyntax and the last bit in librustc.Luqman Aden-15/+18
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-1/+1
2013-02-19convert ast::meta_items to take @~strsErick Tryzelaar-2/+3
2013-02-19libsyntax: make enum variants take refsErick Tryzelaar-22/+19
2013-02-18auto merge of #5005 : alexcrichton/rust/bitv++, r=catamorphismbors-4/+8
These commits take the old bitv implementation and modernize it with an explicit self, some minor touchups, and using what I think is some more recent patterns (like `::new` instead of `Type()`). Additionally, this adds an implementation of `container::Set` on top of a bit vector to have as a set of `uint`s. I initially tried to parameterize the type for the set to be `T: NumCast` but I was hitting build problems in stage0 which I think means that it's not in a snapshot yet, so it's just hardcoded as a set of `uint`s now. In the future perhaps it could be parameterized. I'm not sure if it would really add anything, though, so maybe it's nicer to be hardcoded anyway. I also added some extra methods to do normal bit vector operations on the set in-place, but these aren't a part of the `Set` trait right now. I haven't benchmarked any of these operations just yet, but I imagine that there's quite a lot of room for optimization here and there.
2013-02-18auto merge of #5004 : luqmana/rust/rename-use-import, r=catamorphismbors-1/+1
Seems like my previous pull request got lost along the way somehow. So here it is updated.
2013-02-17Modernize bitv mut fields and explicit selfAlex Crichton-4/+8
2013-02-17libsyntax: Update view_item_use/import to reflect actual usageLuqman Aden-1/+1
2013-02-17libsyntax: Long lines.Luqman Aden-6/+12
2013-02-17libsyntax: Explicit-self-ify pipes compiler.Luqman Aden-122/+110
2013-02-17libsyntax: Remove last use of structural records in pipes compiler.Luqman Aden-56/+69
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-11/+9
slipped through. r=tjc
2013-02-15libsyntax: Get rid of uses of `move` and don't parse it.Luqman Aden-18/+18
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-04core/syntax: Staging fixesTim Chevalier-28/+0
2013-02-04syntax: Make the pipe compiler stop generating set_buffer_ callsTim Chevalier-2/+2
2013-02-04core/syntax: Add transitional code for pipesTim Chevalier-0/+28
2013-02-03core: convert ToStr::to_str to take explicit &selfErick Tryzelaar-2/+2
2013-01-31test cases, cleanupJohn Clements-7/+8
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-11/+1
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-10/+9
2013-01-29libsyntax: De-export a lot of libsyntax. rs=deëxportingPatrick Walton-39/+35
2013-01-29librustc: Disallow trait bounds in types, enumerations, and structure ↵Patrick Walton-4/+11
definitions. r=tjc
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-4/+6
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.
2013-01-24Convert pipes::Buffer into a structErick Tryzelaar-4/+4
2013-01-23renaming to adhere to conventionsJohn Clements-2/+2
2013-01-22Add is_mutbl field to argSeo Sanghyeon-0/+1
2013-01-20Convert many libsyntax records into structsErick Tryzelaar-10/+13
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-23/+38
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-1/+1
2013-01-20convert ast::ty into a structErick Tryzelaar-12/+20
2013-01-20convert ast::expr into a structErick Tryzelaar-12/+18
2013-01-14convert ast::{field_,capture_item_,mt} and middle::ty::mt into structsErick Tryzelaar-4/+11
2013-01-14Convert ast::{pat,field_pat,local_,arm} into structsErick Tryzelaar-5/+9
2013-01-14convert ast::blk_ into a structErick Tryzelaar-5/+7
2013-01-14convert ast::attribute_ and ast::view_item to a structErick Tryzelaar-2/+2
2013-01-14convert ast::item into a structErick Tryzelaar-6/+6
2013-01-14change ast::ty_param into a struct.Erick Tryzelaar-1/+1
2013-01-14Change ast::path into a struct.Erick Tryzelaar-14/+14
2013-01-09syntax: convert ast::spanned into a structErick Tryzelaar-16/+15
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-7/+55
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-55/+7
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-7/+55
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-53/+82
contain at least two components. r=graydon
2012-12-17Change iter::find's closure to take a refErick Tryzelaar-2/+2
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-17/+9