summary refs log tree commit diff
path: root/src/libsyntax/ast_util.rs
AgeCommit message (Collapse)AuthorLines
2012-12-17Switch from serialization to std::serialize. (snapshot)Erick Tryzelaar-2/+2
2012-12-17Add support for destructuring vectors in match expressionsJakub Wieczorek-0/+8
2012-12-13librustc: Allow moves out of `self`. r=nmatsakisPatrick Walton-3/+3
2012-12-10Remove un-needed code for obsolete classesTim Chevalier-2/+2
and rename "class" to "struct" everywhere possible (except local vars, I was too lazy for that) -- that is why this commit is so big. No review, just dead code removal and renaming. Closes #3515
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-12/+12
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30Disallow dereferencing enum types when the variant is privateTim Chevalier-0/+40
If an enum type's only variant is private, disallow dereferencing values of its type. Due to #4082, this only applies to enums that are in the same crate. r=pcwalton Closes #818
2012-11-30libs: Remove transitionary material on iter_bytes, add workcache to build.Graydon Hoare-9/+0
2012-11-29librustc: Eliminate most expressions of the form `a.b()` that are not method ↵Patrick Walton-2/+2
calls. rs=refactoring
2012-11-29Distinguish `stmt_mac`s that are followed by semicolons and those that aren't.Paul Stansifer-1/+1
2012-11-29Allow for macros to occur in statement position.Paul Stansifer-1/+2
2012-11-28librustc: Add explicit self to IterBytes. r=nmatsakisPatrick Walton-0/+9
2012-11-16Change spans to use byte offsets instead of char offsetsBrian Anderson-4/+4
2012-11-14Add types for character position and byte position in the codemapBrian Anderson-4/+4
2012-11-12Convert most codemap types from records to structsBrian Anderson-1/+1
2012-11-07rustc: Support irrefutable patterns in function arguments. r=nmatsakisPatrick Walton-0/+6
2012-10-25rustc: Translate tuple struct constructorsPatrick Walton-0/+6
2012-10-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-1/+1
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-12/+1
2012-10-12Use the Nth impl when translating a static method call, insteadNiko Matsakis-1/+1
of the 0th. 0th is only correct when there are no bound tps on the trait. Fixes #3741.
2012-10-11Remove comment that is now falseTim Chevalier-1/+0
2012-10-08Revert "Revert "Remove old auto_serialize2 code (needs snapshot)""Tim Chevalier-2/+0
This reverts commit a33535e441dc5461fec0489069a1491367ad1c91.
2012-10-08Revert "Remove old auto_serialize2 code (needs snapshot)"Tim Chevalier-0/+2
This reverts commit 0bd6da8a8c93143325cb45e8a074ccf7121ca168.
2012-10-07Remove old auto_serialize2 code (needs snapshot)Erick Tryzelaar-2/+0
2012-10-07Remove the old serializers (needs snapshot)Erick Tryzelaar-0/+2
2012-10-07migrate libsyntax/rustc to auto_serialize2Erick Tryzelaar-1/+2
2012-10-02libstd: Switch off legacy modes in both core and std.Patrick Walton-1/+1
2012-09-28demode vecNiko Matsakis-2/+2
2012-09-26Remove spurious by-ref argument to destructorsTim Chevalier-4/+2
Destructors were internally declared with an extra (hidden) nil-typed argument that was passed in by-ref mode. This was causing spurious mode warnings. Deleted it. Also some misc. cleanup because I couldn't help myself.
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-2/+2
2012-09-26turn ast::ident into a structErick Tryzelaar-1/+1
This will help with the auto_serialize2 migration. We have to change ident from a type alias to uint into a unique type. We need to use a struct instead of a "enum ident = token::str_num" because structs support constants, but newtypes do not.
2012-09-26Revert "fix modes on dtors"Tim Chevalier-1/+1
This reverts commit d38b97a170eaea47933c30937cee5f525573116d. (Accidentally checked this in, oops)
2012-09-26fix modes on dtorsTim Chevalier-1/+1
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-1/+1
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-10/+18
2012-09-19Remove redundant hashmap constructor functions.Graydon Hoare-4/+0
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-33/+35
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-35/+33
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-33/+35
2012-09-12fixup mutability of vec::each, make iter_bytes pureNiko Matsakis-1/+1
also, change DVec() to work with imm vectors rather than mut ones
2012-09-10Make all moves explicit in libsyntaxTim Chevalier-3/+3
2012-09-10Convert std::map to camel caseBrian Anderson-2/+2
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-1/+1
2012-09-07Migrate std::map to use core::hash::Hash trait. Disable many hokey hashes.Graydon Hoare-19/+7
2012-09-07Implement &-patternsTim Chevalier-1/+1
Closes #2855
2012-09-07rustc: Make "ne" use traitsPatrick Walton-1/+2
2012-09-04libsyntax: "import" -> "use"Patrick Walton-2/+2
2012-08-31Make utility funs in core::int, core::uint, etc. not by-referenceTim Chevalier-2/+2
Closes #3302
2012-08-31rustc: Implement "use mod"Patrick Walton-3/+3
2012-08-29rustc: Make `<=`, `>=`, and `>` use traits as wellPatrick Walton-1/+4