summary refs log tree commit diff
path: root/src/libsyntax/parse
AgeCommit message (Collapse)AuthorLines
2013-05-20refactoring test functionsJohn Clements-70/+7
2013-05-20auto merge of #6635 : brson/rust/snapshot, r=brsonbors-16/+0
2013-05-19Register snapshotsBrian Anderson-16/+0
2013-05-19Fix many warnings.Steve Klabnik-2/+2
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-05-16Add BuiltinBounds to closure type: parse and handle subtyping,Niko Matsakis-10/+13
but do not integrate with kindck etc (requires a snapshot first)
2013-05-15auto merge of #6502 : huonw/rust/no-auto-code, r=graydonbors-9/+3
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute and remove the majority of the actual auto_* code, leaving stubs to refer the user to the new syntax. Also, moves the useful contents of auto_encode.rs to more appropriate spots: tests and comments to deriving/encodable.rs, and the ExtCtxtMethods trait to build.rs (unused so far, but the method syntax might be nicer than using the mk_* fns in many instances).
2013-05-16syntax: deprecate #[auto_{en,de}code] in favour of #[deriving({En,De}codable)].Huon Wilson-9/+3
Replace all instances of #[auto_*code] with the appropriate #[deriving] attribute and remove the majority of the actual code, leaving stubs to refer the user to the new syntax.
2013-05-15auto merge of #6499 : dotdash/rust/static_keywords, r=thestingerbors-125/+125
2013-05-15auto merge of #6487 : recrack/rust/vec_len, r=thestingerbors-3/+3
Rename vec::len(var) to var.len() ``` libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax test/auxiliary test/bench test/run-pass ```
2013-05-15Allow static strings to be used with keyword checksBjörn Steinbrink-125/+125
2013-05-14auto merge of #6224 : erickt/rust/rustc-cleanup, r=ericktbors-18/+18
Just a couple minor cleanups and renames of librustc
2013-05-14rustc: rename ast::self_ty and related fields to explicit_selfErick Tryzelaar-18/+18
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-3/+3
2013-05-14Add inlining for iter_bytes for types used as hashmap keysBjörn Steinbrink-0/+2
Not inlining these affects the hash table performance quite badly.
2013-05-14Fix test fallout from removing vecs_implicitly_copyableAlex Crichton-8/+7
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-26/+29
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-12libsyntax: Tighten up expressions in patterns to only allow identifiers or ↵Patrick Walton-3/+30
literals (possibly with a minus). This had very minimal fallout.
2013-05-12librustc: Make `self` and `static` into keywordsPatrick Walton-55/+46
2013-05-12libsyntax: Remove `extern mod foo { ... }` from the language.Patrick Walton-6/+17
2013-05-11Warning policeTim Chevalier-6/+5
2013-05-10Remove the '<->' operator from the languageAlex Crichton-4/+11
2013-05-10auto merge of #6223 : alexcrichton/rust/issue-6183, r=pcwaltonbors-0/+15
Closes #6183. The first commit changes the compiler's method of treating a `for` loop, and all the remaining commits are just dealing with the fallout. The biggest fallout was the `IterBytes` trait, although it's really a whole lot nicer now because all of the `iter_bytes_XX` methods are just and-ed together. Sadly there was a huge amount of stuff that's `cfg(stage0)` gated, but whoever lands the next snapshot is going to have a lot of fun deleting all this code!
2013-05-10auto merge of #6329 : sonwow/rust/issue-6306, r=ILyoanbors-2/+2
Fix for #6306
2013-05-10auto merge of #6356 : dotdash/rust/strinterner, r=pcwaltonbors-69/+69
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-10syntax: Use the new `for` protocolAlex Crichton-0/+15
2013-05-10Move core::task::local_data to core::local_dataYoungsoo Son-2/+2
2013-05-09back-ticksLenny222-1/+1
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-69/+69
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-9/+6
2013-05-08librustc: Remove mutable fields from the language.Patrick Walton-4/+4
They're still parsed though, to get through bootstrapping.
2013-05-07auto merge of #6245 : youknowone/rust/match-range-static, r=graydonbors-2/+8
Fix unintended error problem of: ```` static s: int = 1; static e: int = 42; fn main() { match 7 { s..e => (), ^~ error: expected `=>` but found `..` _ => (), } } ````
2013-05-06Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-6/+6
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-257/+136
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-05auto merge of #6208 : sanxiyn/rust/accurate-span, r=sanxiynbors-6/+6
2013-05-06Fix span testsSeo Sanghyeon-2/+2
2013-05-05Allow non-literal static range pattern for match armsJeong YunWon-2/+8
Fix unintended error problem of: static s: int = 1; static e: int = 42; fn main() { match 7 { s..e => (), ^~ error: expected `=>` but found `..` _ => (), } }
2013-05-04auto merge of #6230 : thestinger/rust/whitespace, r=catamorphismbors-1/+0
I just had `git apply` fix most of them and then did a quick skim over the diff to fix a few cases where it did the wrong thing (mostly replacing tabs with 4 spaces, when someone's editor had them at 8 spaces).
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+0
2013-05-03syntax: Warning policeTim Chevalier-3/+3
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-1/+2
mutable fields in the process
2013-05-03More accurate spansSeo Sanghyeon-4/+4
2013-05-03Use static stringsJeong YunWon-38/+31
2013-05-02More cases of [cfg(test)] instead of [test].Felix S. Klock II-1/+1
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-49/+0
2013-05-01syntax: fix up dynamic borrow errors in libsyntaxNiko Matsakis-10/+10
2013-05-01auto merge of #6148 : erickt/rust/remove-drop, r=pcwaltonbors-164/+99
The drop block has been deprecated for quite some time. This patch series removes support for parsing it and all the related machinery that made drop work. As a side feature of all this, I also added the ability to annote fields in structs. This allows comments to be properly associated with an individual field. However, I didn't update `rustdoc` to integrate these comment blocks into the documentation it generates.
2013-05-01remove some warningsErick Tryzelaar-1/+1
2013-05-01syntax: remove parse::token::{dtor,literally_dtor}Erick Tryzelaar-75/+70