about summary refs log tree commit diff
path: root/src/comp/driver/diagnostic.rs
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-256/+0
2012-02-23(core::str) remove len_bytes aliasKevin Cantu-2/+2
2012-02-23(core::str) mostly rename len -> len_charsKevin Cantu-2/+2
2012-02-15Fix bad line printing for parse errorsMarijn Haverbeke-2/+1
The code that extracted lines from partially-parsed files was broken. Closes #1848
2012-02-14Do a better job of reporting source location for files (i.e. filemap)Kevin Atkinson-0/+1
that are really a substr of another file.
2012-02-12(core::str) rename byte_len -> len_bytes and rename char_len -> lenKevin Cantu-2/+2
2012-02-10log to stderr instead of stdoutTed Horst-9/+9
includes rustc diagnostics runtest updated to check stderr for errors
2012-02-06Revert "log to stderr instead of stdout"Brian Anderson-9/+9
This is causing mysterious hangs on windows. Issue #1769. This reverts commit d65eabd5de4c41e4bc93b9c6c03d6278299ceb76.
2012-02-05Fix macro backtraces.Kevin Atkinson-0/+13
In addition add information about the macro doing the expansion, and move the printing of the expansion backtrace from codemap::span_to_str to the diagnostic code. The backtrace is now more verbose and includes information on the macro doing the expansion, in addition to the expansion site.
2012-02-03log to stderr instead of stdoutTed Horst-9/+9
includes rustc diagnostics runtest updated to check stderr for errors
2012-02-03Don't rely on filename to get a file from the filemapKevin Atkinson-5/+1
as there may be more than one filemap with the same filename (in the case of stdin for instance). This involved storing a pointer to the filemap rather than the filename in location info such as codemap::pos.
2012-01-25Keep source file around after parsing.Kevin Atkinson-10/+1
Specifically box the string (to avoid unnecessary copies) and store it in codemap::filemap. Remove the hack in driver::diagnostic that rereads the source from the file and instead just get the source from the filemap. (This commit is also a prerequisite for issue #1612)
2012-01-24rustc: Bump the error count on non-span errorsBrian Anderson-0/+1
2012-01-24rustc: Split diagnostics into "span diagnostics" and "diagnostics".Patrick Walton-36/+60
The former contain a codemap (which is per-crate), and the latter don't. This will be useful in order to allow more than one crate to be compiled in one run of the compiler.
2012-01-19rustc: ";" to "," in enumsPatrick Walton-4/+4
2012-01-19rustc: "tag" -> "enum"Patrick Walton-1/+1
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-10/+10
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-14rustc: Extract the logic for generating an ICE messageBrian Anderson-2/+7
2012-01-14rustc: Rename mk_codemap_handler to mk_handlerBrian Anderson-3/+3
2012-01-14rustc: Rename emit_diagnostic to emitBrian Anderson-4/+4
2012-01-14rustc: Rename diagnostic::diagnostictype to 'level'Brian Anderson-14/+14
2012-01-14rustc: Make it not an error when the source can't be loaded for highlightingBrian Anderson-2/+2
I plan to have a callback mechanism for reporting errors and it gets wierd when reporting errors while reporting an error.
2012-01-14rustc: Allow a custom diagnostic emitter when building the handlerBrian Anderson-11/+30
2012-01-13rustc: Remove emit_fatal/error/warning/note functionsBrian Anderson-23/+11
2012-01-13rustc: Add a distinct fatal diagnostic levelBrian Anderson-7/+13
2012-01-13rustc: Replace session's error handling with diagnostic implBrian Anderson-1/+1
2012-01-13rustc: Add diagnostic::handler iface and default implBrian Anderson-0/+77
This is for moving error handling logic out of the session
2012-01-13rustc: Stop exporting various things from driver::diagnosticBrian Anderson-2/+1
2012-01-13rustc: Extract driver::diagnostic from syntax::codemapBrian Anderson-0/+137