summary refs log tree commit diff
path: root/src/libsyntax/ast_map.rs
AgeCommit message (Collapse)AuthorLines
2012-12-10Remove un-needed code for obsolete classesTim Chevalier-18/+6
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-07Remove impl_id from trait_ref. UnusedBrian Anderson-6/+0
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-9/+9
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/+10
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-28Register snapshotsBrian Anderson-23/+0
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+23
2012-11-14librustc: Require the #[derivable] attribute, remove the significance of ↵Patrick Walton-5/+3
"impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson
2012-11-13librustc: Implement deriving with a unit return type. r=tjcPatrick Walton-2/+1
2012-10-26rustc: Translate monomorphic intra-crate automatically-derived methods that ↵Patrick Walton-1/+1
follow the "eq" format
2012-10-25rustc: Translate tuple struct constructorsPatrick Walton-0/+17
2012-10-23rustc: Implement typechecking for simple monomorphic derivable traits on ↵Patrick Walton-4/+6
monomorphic types. r=brson
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-19/+1
2012-10-08Revert "remove ctor from ast"Tim Chevalier-1/+19
This reverts commit ed3689d57c988e1dd477930d957c4308c37d1a64.
2012-10-08remove ctor from astNiko Matsakis-19/+1
2012-09-28demode vecNiko Matsakis-1/+1
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-2/+2
2012-09-26turn ast::ident into a structErick Tryzelaar-4/+4
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-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-22/+0
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-1/+1
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+22
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-7/+7
2012-09-19Remove redundant hashmap constructor functions.Graydon Hoare-1/+1
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-2/+4
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-4/+2
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-2/+4
2012-09-10Convert std::map to camel caseBrian Anderson-2/+2
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+1
2012-09-04Allow anonymous extern modsTim Chevalier-1/+8
Now you can write: extern { f() -> int; } and f will be accessible in the enclosing scope.
2012-09-04Remove 'with'Brian Anderson-2/+2
2012-09-04libsyntax: "import" -> "use"Patrick Walton-7/+7
2012-08-31rustc: Implement "use mod"Patrick Walton-1/+1
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-1/+24
2012-08-27rustc: more pattern cleanupErick Tryzelaar-4/+4
2012-08-26Camel case the option typeBrian Anderson-14/+14
2012-08-24fix some unused pattern binding warningsNiko Matsakis-1/+1
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-20/+20
2012-08-23Infer variance of types with respect to the region parameter.Niko Matsakis-1/+14
A similar approach could be used for type parameters. Fixes #2282.
2012-08-22intern identifiersPaul Stansifer-18/+19
2012-08-17make borrowck more conservative around rvalues.Niko Matsakis-1/+12
this will require more temporaries, but is probably less magical. also, it means that borrowck matches trans better, so fewer crashes. bonus. Finally, stop warning about implicit copies when we are actually borrowing. Also, one test (vec-res-add) stopped failing due to #2587, and hence I added an xfail-test. Fixes #3217, #2977, #3067
2012-08-15rustc: Perform some AST surgery to separate out class fields from methodsPatrick Walton-2/+1
2012-08-15Convert more core types to camel caseBrian Anderson-2/+2
2012-08-08Convert impls to new syntaxBrian Anderson-1/+0
2012-08-08rustc: Do some plumbing work in preparation for common fields in enumsPatrick Walton-2/+2
2012-08-07rustc: Box struct_defsPatrick Walton-1/+1
2012-08-07libsyntax: Break struct definitions out of classes internally in a few more ↵Patrick Walton-13/+19
places
2012-08-07rustc: Split out struct bodies into a separate "struct_def" type in the ASTPatrick Walton-3/+3
2012-08-07syntax: Make match arm parsing more restrictive againBrian Anderson-1/+1
Require comma separators for all expression types except the plain block
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-10/+10
2012-08-05Switch alts to use arrowsBrian Anderson-46/+44