about summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
AgeCommit message (Collapse)AuthorLines
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-2/+2
2013-06-08auto merge of #7004 : dotdash/rust/allocs, r=thestingerbors-4/+5
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-09remove unused import warningsHuon Wilson-1/+0
2013-06-09std: remove each_char* fns and methods from str, replaced by iterators.Huon Wilson-2/+3
2013-06-08Lexer: Fix offset handling in get_str_from()Björn Steinbrink-1/+1
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-08Lexer: Avoid unnecessary allocationsBjörn Steinbrink-4/+5
2013-06-05removed unused imports (and one unused argument)John Clements-1/+0
2013-06-05remove interner field from string_readerJohn Clements-3/+1
2013-06-05just use TLS internerJohn Clements-1/+2
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-1/+2
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+4
2013-05-28Remove unnecessary allocations flagged by lintSeo Sanghyeon-3/+3
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-8/+8
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-1/+1
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-1/+1
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-1/+1
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-11Warning policeTim Chevalier-6/+5
2013-04-28parser commentsJohn Clements-0/+2
2013-04-27only use #[no_core] in libcoreDaniel Micay-8/+0
2013-04-20syntax: remove unused 'mut' variablesAlex Crichton-1/+1
2013-04-19syntax: de-mode and prepare for de-modeing rustcAlex Crichton-1/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-3/+3
2013-03-28Removing unused importsAlex Crichton-1/+1
2013-03-27derive Eq and Clone impls where applicableAndrew Paseltiner-10/+1
2013-03-26Switched over a bunch of splitting funktions to non-allocating iteratorsMarvin Löbel-2/+6
2013-03-22librustc: Remove `pure` from libsyntax and librustc.Patrick Walton-2/+2
2013-03-21Un-renamed trim and substr functions.Marvin Löbel-5/+5
2013-03-21Switched over substr and trim functions in str to be non-allocating, ↵Marvin Löbel-4/+7
temporary renamed them to better track use-sites
2013-03-21back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> ↵Marvin Löbel-5/+5
slice_unique
2013-03-21renamed str::view -> slice_DBG_BRWDMarvin Löbel-5/+5
renamed str::slice -> slice_DBG_UNIQ changed vec slice method -> to_owned() renamed vec view method -> slice_V_DBG_BRWD
2013-03-20syntax: Removing some bad copiesAlex Crichton-2/+2
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-3/+5
2013-03-11Remove uses of logBrian Anderson-2/+2
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-4/+4
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-02-26libsyntax: add explicit copiesErick Tryzelaar-5/+5
2013-02-26libsyntax: change token fns to take &TokenErick Tryzelaar-1/+1
2013-02-26libsyntax: change token::to_str to take &TokenErick Tryzelaar-1/+1
2013-02-21Get rid of structural records in libsyntax and the last bit in librustc.Luqman Aden-10/+17
2013-02-19Change functions from taking ~str to taking &strErick Tryzelaar-3/+3
2013-02-14auto merge of #4911 : lifthrasiir/rust/comment-exemptions, r=catamorphismbors-28/+38
This is a natural extension of #4887, and handles the following three cases: ~~~~ a line with only /s //////////////////////////////////////////// a line with only /s followed by whitespace //////////////////////////////////////////// a block comment with only *s between two /s /********************************/ ~~~~
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-13libsyntax: don't parse ////, /***/ as doc commentsKang Seonghoon-28/+38
2013-02-07librustc: Lots of de-muting. rs=demutingPatrick Walton-14/+17
2013-01-31test cases, cleanupJohn Clements-2/+2
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-29libsyntax: De-export a lot of libsyntax. rs=deëxportingPatrick Walton-16/+9
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-1/+1
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.