summary refs log tree commit diff
path: root/src/libsyntax/fold.rs
AgeCommit message (Collapse)AuthorLines
2012-12-17Add support for destructuring vectors in match expressionsJakub Wieczorek-1/+5
2012-12-12syntax: remove most code handling old-style syntax extensions.Graydon Hoare-7/+0
2012-12-10Remove un-needed code for obsolete classesTim Chevalier-7/+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-07Remove impl_id from trait_ref. UnusedBrian Anderson-2/+1
2012-12-04librustc: Long lines. rs=rustbotPatrick Walton-1/+2
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-38/+38
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30librustc: Make `a.b()` always a method call. r=nmatsakisPatrick Walton-0/+7
2012-11-29librustc: Eliminate most expressions of the form `a.b()` that are not method ↵Patrick Walton-36/+36
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/+3
2012-11-28Merge remote-tracking branch 'brson/companion' into incomingBrian Anderson-27/+0
Conflicts: src/compiletest/compiletest.rs src/libcargo/cargo.rs src/libcore/core.rs src/librustc/rustc.rs src/librustdoc/rustdoc.rc
2012-11-28librustc: Parse `extern "C" { ... }`. r=brsonPatrick Walton-2/+3
2012-11-26Remove the crate languageBrian Anderson-27/+0
2012-11-18syntax: Remove cdir_syntax. UnusedBrian Anderson-1/+0
2012-11-14librustc: Require the #[derivable] attribute, remove the significance of ↵Patrick Walton-4/+2
"impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson
2012-11-07rustc: Support irrefutable patterns in function arguments. r=nmatsakisPatrick Walton-3/+3
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-7/+11
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-4/+5
2012-11-02syntax: Fold macros in default methods. Closes #3911Brian Anderson-1/+7
2012-11-01Support #[cfg] on methodsBrian Anderson-0/+1
2012-10-30Preserve parenthesization in the ASTTim Chevalier-1/+2
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-25rustc: Translate tuple struct constructorsPatrick Walton-2/+2
2012-10-24rustc: Implement typechecking for tuple structs. r=nmatsakisPatrick Walton-2/+4
2012-10-23Remove <- operator from the compilerTim Chevalier-11/+1
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-2/+4
monomorphic types. r=brson
2012-10-22Simplify the AST representation of ty param boundsTim Chevalier-4/+1
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-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-2/+2
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-19/+0
2012-10-08Revert "remove ctor from ast"Tim Chevalier-0/+19
This reverts commit ed3689d57c988e1dd477930d957c4308c37d1a64.
2012-10-08remove ctor from astNiko Matsakis-19/+0
2012-09-28demode vecNiko Matsakis-1/+1
2012-09-27libsyntax: Parse visibility modifiers before foreign itemsPatrick Walton-1/+2
2012-09-26core: Replace map/map_default with map_ref/map_default_refBrian Anderson-18/+18
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-6/+4
2012-09-24Support visibility qualifiers in crate directives properly.Graydon Hoare-4/+5
2012-09-23core: Demode optionBrian Anderson-17/+17
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-23/+23
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-52/+54
2012-09-20Revert "syntax: Make attributes sendable for rustdoc's benefit"Brian Anderson-3/+3
This reverts commit 90e3665fa79d32c3188169cfa992516fb36b81a8.
2012-09-20syntax: Make attributes sendable for rustdoc's benefitBrian Anderson-3/+3
2012-09-07Implement &-patternsTim Chevalier-0/+1
Closes #2855
2012-09-04Remove 'with'Brian Anderson-12/+12
2012-09-04libsyntax: "import" -> "use"Patrick Walton-2/+2
2012-08-29Allow extern mods to be anonymousTim Chevalier-1/+2
extern mod { f(); } is now allowed, and puts f in the enclosing scope. (Requires a link_name attribute to be really useful...)
2012-08-26Camel case the option typeBrian Anderson-17/+17
2012-08-25rustc: Implement foreign constants.Patrick Walton-0/+3
This is needed for a lot of Apple libraries, as Apple tends to put a lot of globals in dynamic libraries.
2012-08-24Remove match checkTim Chevalier-2/+2
2012-08-24fix some unused pattern binding warningsNiko Matsakis-1/+1
2012-08-23Remove purity from fn_decl and move it out to containing AST elements.Michael Sullivan-11/+13