about summary refs log tree commit diff
path: root/src/libsyntax/ext
AgeCommit message (Collapse)AuthorLines
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-9/+36
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-1/+1
2013-02-28Merge remote-tracking branch 'remotes/origin/incoming' into incomingErick Tryzelaar-234/+348
2013-02-27auto merge of #5141 : nikomatsakis/rust/region-syntax-expl-lifetimes, ↵bors-190/+260
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-190/+260
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-132/+526
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-9/+9
2013-02-26libsyntax: add some more explicit copiesErick Tryzelaar-12/+21
2013-02-26libsyntax: remove vecs_implicitly_copyable from the syntax extensionsErick Tryzelaar-124/+151
2013-02-26auto merge of #5120 : jbclements/rust/macros-have-scope, r=pcwaltonbors-105/+506
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-26typo-fixing and name-changesJohn Clements-15/+13
2013-02-26Macros now leave scopeJohn Clements-89/+488
Macro scope is now delimited by function, block, and module boundaries, except for modules that are marked with #[macro_escape], which allows macros to escape.
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-26libsyntax: change token::to_str to take &TokenErick Tryzelaar-2/+2
2013-02-26libsyntax: change attr::parse_seq_* to take &TokenErick Tryzelaar-7/+7
2013-02-25libsyntax: add some explicit copiesErick Tryzelaar-21/+37
2013-02-25libsyntax: change expect to take &token::TokenErick Tryzelaar-2/+2
2013-02-25libsyntax: change eat to take a &tokenErick Tryzelaar-1/+1
2013-02-25libsyntax: is_keyword should take a &~strErick Tryzelaar-2/+2
2013-02-25libsyntax: progress on making syntax::visit vecs_implicitly_copyable-freeErick Tryzelaar-62/+69
2013-02-25libsyntax: convert visit to pass ty_params by referenceErick Tryzelaar-35/+50
2013-02-25libsyntax: add explicit modes where required to copy strs/vecsErick Tryzelaar-73/+103
2013-02-25libsyntax: Convert ast::attribute_ to store a @meta_itemErick Tryzelaar-6/+6
2013-02-22libsyntax: De-mut the parser. rs=demutingPatrick Walton-29/+27
2013-02-22libsyntax: De-mut the macro parser. rs=demutingPatrick Walton-12/+12
2013-02-22libsyntax: De-mut the pipe compilerPatrick Walton-36/+38
2013-02-22auto merge of #5081 : brson/rust/pipes, r=pcwaltonbors-21/+23
r?
2013-02-21auto merge of #5076 : pcwalton/rust/demuting, r=pcwaltonbors-14/+14
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-21/+23
2013-02-21auto merge of #5059 : Kimundi/rust/incoming, r=catamorphismbors-3/+3
compiles-as-is, but needs a snapshot to remove the `stage0`ed extfmt export in core. Closes #4750
2013-02-21librustc: De-mut some of transPatrick Walton-14/+14
2013-02-21auto merge of #5068 : sethpink/rust/derive-eq-tuple-struct, r=catamorphismbors-14/+89
Previously an unimplemented error was thrown when using #[deriving_eq] on tuple-like struct definitions.
2013-02-21Moved core::extfmt to core::private::extfmtMarvin Löbel-3/+3
Needs a snapshot to remove stage0 extfmt export in core
2013-02-21Get rid of structural records in libsyntax and the last bit in librustc.Luqman Aden-82/+120
2013-02-21Implement #[deriving_eq] on tuple like structsSeth Pink-14/+89
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-4/+4
2013-02-19convert SyntaxExtensions's key to a @~strErick Tryzelaar-31/+31
2013-02-19convert ast::meta_items to take @~strsErick Tryzelaar-2/+3
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-4/+4
2013-02-19Alias HashMap<~str, SyntaxExtension> to SyntaxExtensionsErick Tryzelaar-6/+8
2013-02-19libsyntax and librustc: minor cleanupErick Tryzelaar-5/+3
2013-02-19libsyntax: change attr:get_attr_name to take a refErick Tryzelaar-2/+2
2013-02-19libsyntax: make enum variants take refsErick Tryzelaar-44/+42
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-2/+2
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-2/+2
2013-02-17libsyntax: Long lines.Luqman Aden-6/+12