summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
AgeCommit message (Collapse)AuthorLines
2012-11-12Convert most codemap types from records to structsBrian Anderson-3/+2
2012-11-12rustc: Implement floating point literal inference. r=nmatsakisPatrick Walton-3/+5
2012-11-07rustc: Support irrefutable patterns in function arguments. r=nmatsakisPatrick Walton-8/+15
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-102/+173
Fixes #1896 which was never truly fixed, just masked. The given tests would have failed had they used `~fn()` and not `@fn()`. They now result in compilation errors. Fixes #2978. Necessary first step for #2202, #2263.
2012-11-05rustc: Implement parsing and typechecking for "once fn"Patrick Walton-6/+33
2012-10-30Fix #1458 (allow paren'd exprs to be the operator in a `do`)Tim Chevalier-1/+1
Closes #1458
2012-10-30Preserve parenthesization in the ASTTim Chevalier-77/+52
Maintain explicit "paren" nodes in the AST so we can pretty-print without having to guess where parens should go. We may revisit this in the future. r=graydon
2012-10-25libsyntax: Don't write a ctor ID for struct-like enum variants. rs=rustbotPatrick Walton-1/+1
2012-10-25rustc: Translate tuple struct constructorsPatrick Walton-2/+7
2012-10-24Merge branch 'method-vis-parse'Brian Anderson-10/+10
Conflicts: src/libsyntax/parse/parser.rs
2012-10-24rustc: Implement typechecking for tuple structs. r=nmatsakisPatrick Walton-2/+5
2012-10-24Make check & TidyMahmut Bulut-4/+3
2012-10-23Remove <- operator from the compilerTim Chevalier-17/+17
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" r=brson Progress on #3466
2012-10-23rustc: Implement typechecking for simple monomorphic derivable traits on ↵Patrick Walton-6/+13
monomorphic types. r=brson
2012-10-23* Parsing sequence changedMahmut Bulut-11/+12
1- visibility parse 2- purity parse
2012-10-22Simplify the AST representation of ty param boundsTim Chevalier-10/+10
Change ast::ty_param_bound so that all ty param bounds are represented as traits, with no special cases for Copy/Send/Owned/Const. typeck::collect generates the special cases. A consequence of this is that code using the #[no_core] attribute can't use the Copy kind/trait. Probably not a big deal? As a side effect, any user-defined traits that happen to be called Copy, etc. in the same module override the built-in Copy trait. r=nmatsakis Closes #2284
2012-10-20Parse and report obsolete fixed-length vector syntaxBrian Anderson-2/+9
2012-10-20No longer parse old fixed-length vec sytnaxBen Striegel-38/+1
2012-10-20Remove old fixed-length vector syntaxBen Striegel-7/+2
2012-10-18Remove dead type definitionTim Chevalier-1/+1
2012-10-17libsyntax: refactor the parser to consider foreign items as itemsPhilipp Brüschweiler-26/+60
parse_item_or_view_item() would drop visibility if none of the conditions following it would hold. This was the case when parsing extern {} blocks, where the function was only used to parse view items, but discarded the visibility of the first not-view item.
2012-10-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-35/+35
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-56/+9
2012-10-12Replace several common macros of the form #m[...] with m!(...)Kevin Cantu-3/+3
This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
2012-10-11Update FIXME numberTim Chevalier-1/+1
2012-10-08Revert "remove ctor from ast"Tim Chevalier-9/+56
This reverts commit ed3689d57c988e1dd477930d957c4308c37d1a64.
2012-10-08remove ctor from astNiko Matsakis-56/+9
2012-10-05Remove by-mutable-ref mode from the compilerTim Chevalier-5/+6
and test cases. Closes #3513
2012-10-05Finally removing all uses of by-mut-refTim Chevalier-1/+2
The code for the mode itself is still there.
2012-10-05Remove uses of mutable ref mode.Tim Chevalier-2/+4
It's still in the compiler right now, but warned about
2012-10-05Revert "wip"Tim Chevalier-6/+4
This reverts commit ca49fd402af8e7bf613c43e996274b5a017958d2.
2012-10-05wipTim Chevalier-4/+6
2012-10-05Demode some code using by-mutbl-ref; warn about by-mutbl-refTim Chevalier-0/+1
The parser now warns about use of mutbl-ref mode, though it's kind of a lie since this commit doesn't remove support for the mode. Changed move_val_init to have stage0 and stage1/2 versions, the latter of which is demoded. Changed the type that the typechecker expects the move_val_init intrinsic to have. After this is pushed, I can make a new snapshot, which will remove the need for the stage0 versions.
2012-10-02rustc: Only allow imports marked with "pub" to be imported from other modulesPatrick Walton-3/+3
2012-09-27libsyntax: Fix long lineErick Tryzelaar-1/+2
2012-09-27Merge pull request #3607 from gutworth/incomingBrian Anderson-11/+5
utterly trivial refactoring
2012-09-27libsyntax: Parse visibility modifiers before foreign itemsPatrick Walton-6/+11
2012-09-27factor out common linesBenjamin Peterson-11/+5
2012-09-26core: Replace map/map_default with map_ref/map_default_refBrian Anderson-2/+2
2012-09-26Long linesBrian Anderson-4/+7
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-68/+68
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-26fix issue #3535 and add colon between mode and type when dumping funcion ↵Vincent Belliard-17/+28
prototype
2012-09-24Support visibility qualifiers in crate directives properly.Graydon Hoare-2/+3
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-9/+0
2012-09-23core: Demode optionBrian Anderson-2/+2
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-3/+13
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+9
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-4/+4
2012-09-19Remove redundant hashmap constructor functions.Graydon Hoare-1/+1