| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-06-08 | auto merge of #7004 : dotdash/rust/allocs, r=thestinger | bors | -44/+60 | |
| This removes some unnecessary allocations in the lexer, the typechecker and the metadata decoder. Reduces the time spent in the parsing and typechecking passes by about 10% for me. | ||||
| 2013-06-09 | remove unused import warnings | Huon Wilson | -4/+1 | |
| 2013-06-09 | std: remove each_char* fns and methods from str, replaced by iterators. | Huon Wilson | -2/+3 | |
| 2013-06-08 | Lexer: Fix offset handling in get_str_from() | Björn Steinbrink | -10/+8 | |
| As the comment said, the subtraction is bogus for multibyte characters. Fortunately, we can just use last_pos instead of pos to get the correct position without any subtraction hackery. | ||||
| 2013-06-08 | Lexer: Avoid unnecessary allocations | Björn Steinbrink | -42/+57 | |
| 2013-06-08 | Avoid unnecessary (re-)allocations in the lexer | Björn Steinbrink | -7/+8 | |
| 2013-06-06 | auto merge of #6982 : Aatch/rust/better-foreign-error, r=pcwalton | bors | -2/+2 | |
| I encountered this. A straight fail is not useful and most people aren't going to happily spelunk in `parser.rs` | ||||
| 2013-06-07 | Provide an actual error when expanding macros to foreign items | James Miller | -2/+2 | |
| 2013-06-06 | Clean up a handful of build warnings. | Michael Sullivan | -2/+2 | |
| 2013-06-06 | Deduplicate words in code comments | Alexei Sholik | -1/+1 | |
| 2013-06-05 | added fresh-name fn | John Clements | -0/+28 | |
| 2013-06-05 | add hygiene support functions | John Clements | -22/+12 | |
| 2013-06-05 | remove unused get_ident_interner's | John Clements | -1/+2 | |
| 2013-06-05 | removed unused imports (and one unused argument) | John Clements | -6/+3 | |
| 2013-06-05 | remove interner field from string_reader | John Clements | -28/+16 | |
| 2013-06-05 | remove interner from tt_reader | John Clements | -1/+0 | |
| 2013-06-05 | token_to_ident takes argument by reference | John Clements | -7/+7 | |
| 2013-06-05 | interner just uses uints, not idents with syntax context | John Clements | -49/+71 | |
| 2013-06-05 | removed some interner fields | John Clements | -9/+0 | |
| 2013-06-05 | just use TLS interner | John Clements | -25/+29 | |
| 2013-06-05 | rename repr to name | John Clements | -82/+82 | |
| 2013-06-05 | change to newer macro escape mechanism, using uints in more places | John Clements | -13/+28 | |
| 2013-06-04 | librustc: Disallow multiple patterns from appearing in a "let" declaration. | Patrick Walton | -11/+27 | |
| You can still initialize multiple variables at once with "let (x, y) = (1, 2)". | ||||
| 2013-06-04 | libsyntax: Remove `pub impl` from the language | Patrick Walton | -11/+9 | |
| 2013-06-01 | syntax: move callee_id into the expr_ variants | Erick Tryzelaar | -38/+60 | |
| 2013-06-01 | Remove all uses of `pub impl`. rs=style | Patrick Walton | -184/+177 | |
| 2013-05-31 | auto merge of #6833 : fdr/rust/fix-warnings, r=Aatch | bors | -4/+1 | |
| Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe. | ||||
| 2013-05-30 | Fix parser test | Niko Matsakis | -1/+1 | |
| 2013-05-30 | Remove unnecessary 'use' forms | Daniel Farina | -4/+1 | |
| Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe. | ||||
| 2013-05-30 | Remove copy bindings from patterns. | Niko Matsakis | -59/+54 | |
| 2013-05-30 | Remove a bunch of unnecessary allocations and copies | Björn Steinbrink | -1/+2 | |
| 2013-05-29 | librustc: Stop reexporting the standard modules from prelude. | Patrick Walton | -0/+18 | |
| 2013-05-29 | libsyntax: Stop parsing mutable fields | Patrick Walton | -6/+4 | |
| 2013-05-29 | libsyntax: Make `drop` no longer a keyword | Patrick Walton | -2/+0 | |
| 2013-05-28 | Remove unnecessary allocations flagged by lint | Seo Sanghyeon | -20/+20 | |
| 2013-05-25 | auto merge of #6722 : alexcrichton/rust/issue-4219-no-merge-hack, r=brson | bors | -34/+1 | |
| Changes the int/uint modules to all use macros instead of using the `merge` attribute. It would be nice to have #4375 resolved as well for this, but that can probably come at a later date. Closes #4219. | ||||
| 2013-05-25 | Use an enum for keywords and intern them to improve parser performance | Björn Steinbrink | -243/+277 | |
| Currently, keywords are stored in hashsets that are recreated for every Parser instance, which is quite expensive since macro expansion creates lots of them. Additionally, the parser functions that look for a keyword currently accept a string and have a runtime check to validate that they actually received a keyword. By creating an enum for the keywords and inserting them into the ident interner, we can avoid the creation of the hashsets and get static checks for the keywords. For libstd, this cuts the parse+expansion part from ~2.6s to ~1.6s. | ||||
| 2013-05-24 | Remove the #[merge] hack from the parser | Alex Crichton | -34/+1 | |
| 2013-05-24 | auto merge of #6680 : ben0x539/rust/slashslashslash, r=graydon | bors | -2/+9 | |
| There's currently a function in the lexer that rejects a line comment that is all slashes from being a doc comment. I think the intention was that you could draw boxes, ///////////// // like so // ///////////// Since a line doc comment split up over multiple paragraphs will have a "blank" line that is just /// between the paragraphs, that would get mistaken for a box segment, lexed as a regular comment, and go missing from the sequence of doc comment attributes before they were reassembled by rustdoc into markdown input. I figure the best plan here is to just declare that a comment that is exactly `///` is a doc comment after all, and to only omit comments with four slashes or more, which is what this commit implements. Can't really draw boxes that narrow, anyway. | ||||
| 2013-05-23 | cleanup warnings from libsyntax | Erick Tryzelaar | -3/+3 | |
| 2013-05-22 | librustc: Change `std` to `extra` throughout libsyntax and librustc | Patrick Walton | -6/+4 | |
| 2013-05-22 | libextra: Rename the actual metadata names of libcore to libstd and libstd ↵ | Patrick Walton | -0/+11 | |
| to libextra | ||||
| 2013-05-22 | declare that "///" is still a doc comment, just not "////+" (fixes #5838) | Benjamin Herr | -2/+9 | |
| 2013-05-22 | Fix #6342 | Jihyun Yu | -4/+9 | |
| 2013-05-21 | Correct span for expr_vec | Seo Sanghyeon | -1/+1 | |
| 2013-05-20 | Remove all unnecessary allocations (as flagged by lint) | Alex Crichton | -39/+37 | |
| 2013-05-20 | getting rid of interner_key! macro | John Clements | -32/+42 | |
| 2013-05-20 | hygiene infrastructure. | John Clements | -19/+14 | |
| - added a hash table to memoize rename and mark operations. - added rename, mark, and resolve fold fns | ||||
| 2013-05-20 | detect unused attrs in one more place, allow parsing to continue for all | John Clements | -24/+53 | |
| changed a bunch of fatal()'s into err()'s, to allow parsing to proceed. | ||||
| 2013-05-20 | parser comment | John Clements | -0/+1 | |
