about summary refs log tree commit diff
path: root/src/libsyntax/diagnostic.rs
AgeCommit message (Collapse)AuthorLines
2013-08-11libsyntax: Update from `@Object` to `@mut Object` as requiredNiko Matsakis-9/+9
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-1/+1
2013-08-03remove obsolete `foreach` keywordDaniel Micay-3/+3
this has been replaced by `for`
2013-08-02replace `range` with an external iteratorDaniel Micay-2/+1
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-2/+2
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-2/+2
2013-07-22new snapshotDaniel Micay-3/+0
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-4/+4
2013-07-14Don't re-parse terminfo (twice!) on every compiler diagnosticKevin Ballard-2/+19
Stuff the term::Terminal into TLS to avoid re-parsing for every single message we want to color. Fixes #6827.
2013-07-14Highlight rustc's warnings/errors in bold instead of bright whiteKevin Ballard-14/+15
Clang actually highlights using bold, not using bright white. Match clang on this so our diagnostics are still readable on terminals with a white background.
2013-07-09bright white for the message, similar to clangLenny222-1/+1
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-4/+4
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-9/+18
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-2/+1
2013-06-26Refactor extra::term a bitKevin Ballard-6/+6
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
2013-06-26Make ^~~~~ colour dependent on error/warning/note level. Also correct ↵Ben Blum-7/+7
spelling of squigglies.
2013-06-25great renaming propagation: syntaxCorey Richardson-5/+3
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+1
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22Merge pull request #7230 from Blei/green-squiggleDaniel Micay-13/+20
syntax::diagnostics: Color the ^~~~ in green for better visibility
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-1/+1
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-19syntax::diagnostics: Color the ^~~~ in green for better visibilityPhilipp Brüschweiler-13/+20
Fixes #7164.
2013-06-16Add copies to type params with Copy boundNiko Matsakis-1/+1
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-2/+2
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
2013-06-11option: remove redundant old_iter implsDaniel Micay-1/+2
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-4/+3
2013-05-31extra::term: better error handling and win32 compatCorey Richardson-9/+9
2013-05-31extra::term overhaulCorey Richardson-10/+18
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+4
2013-05-28Remove unnecessary allocations flagged by lintSeo Sanghyeon-7/+7
2013-05-22librustc: Change `std` to `extra` throughout libsyntax and librustcPatrick Walton-1/+1
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-2/+2
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-3/+3
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-1/+1
2013-05-06refinement to technique used to not run regionckNiko Matsakis-1/+7
2013-04-27only use #[no_core] in libcoreDaniel Micay-7/+0
2013-04-22Revert "Errors with the same span print the span once"Brian Anderson-147/+13
This reverts commit 6030e3982a52c8d9ede225f992088bb75fba4ef1.
2013-04-20syntax: remove unused 'mut' variablesAlex Crichton-1/+1
2013-04-18Errors with the same span print the span onceYoungmin Yoo-13/+147
2013-03-26option: rm functions that duplicate methodsDaniel Micay-3/+1
2013-03-22syntax: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-6/+6
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-1/+1
2013-03-08syntax: Remove uses of DVecAlex Crichton-2/+1
2013-03-05auto merge of #5212 : thestinger/rust/iter, r=graydonbors-1/+1
A small step towards fixing #2827
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-03-03replace option::iter with a BaseIter implDaniel Micay-1/+1
2013-03-02libsyntax: Remove `fn@`, `fn~`, and `fn&` from libsyntax. rs=defunPatrick Walton-4/+4
2013-02-22libsyntax: De-mut the pipe compilerPatrick Walton-1/+1