summary refs log tree commit diff
path: root/src/libsyntax/diagnostic.rs
AgeCommit message (Collapse)AuthorLines
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
2013-02-21Cleanup, commenting, trivial renamingJohn Clements-11/+17
2013-02-21Get rid of structural records in libsyntax and the last bit in librustc.Luqman Aden-2/+2
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-1/+1
2013-02-14Convert all uses of vec::slice to vec::view Issue #3869Nick Desaulniers-1/+1
Rename const_view to const_slice Renamed mut_view to mut_slice
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-2/+2
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-09Added related FIXME for 3260Matthijs Hofstra-1/+1
2013-02-09Fix for issue 2174Matthijs Hofstra-4/+16
The function that formats and prints the squigly line that hilights errors counted tabs as spaces, which resulted in incorrect error messages when tabs were used for indentation. This change compares the highlight line with the previous line and inserts a tab instead of a space whenever such a tab exists on the previous line. Note that error messages will still highlight incorrectly when the previous line include characters that require more than one utf8 code point, as mentioned in issue 3260.
2013-02-07librustc: Lots of de-muting. rs=demutingPatrick Walton-71/+69
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-18/+13
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.