about summary refs log tree commit diff
path: root/src/libsyntax/errors/emitter.rs
AgeCommit message (Collapse)AuthorLines
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-871/+0
2016-06-16Add an abs_path member to FileMap, use it when writing debug info.Ted Mielczarek-5/+5
When items are inlined from extern crates, the filename in the debug info is taken from the FileMap that's serialized in the rlib metadata. Currently this is just FileMap.name, which is whatever path is passed to rustc. Since libcore and libstd are built by invoking rustc with relative paths, they wind up with relative paths in the rlib, and when linked into a binary the debug info uses relative paths for the names, but since the compilation directory for the final binary, tools trying to read source filenames will wind up with bad paths. We noticed this in Firefox with source filenames from libcore/libstd having bad paths. This change stores an absolute path in FileMap.abs_path, and uses that if available for writing debug info. This is not going to magically make debuggers able to find the source, but it will at least provide sensible paths.
2016-05-24Back to single line between errors. Add header space to secondary filesJonathan Turner-1/+5
2016-05-23Update error format for readability. Add spacing header<->snippet and ↵Jonathan Turner-1/+1
another line between errors
2016-05-19Rollup merge of #33730 - jseyfried:fix_macro_backtrace_diagnostics, ↵Manish Goregaokar-1/+1
r=nikomatsakis Fix macro expansion backtrace diagnostics Fixes #33704. r? @nikomatsakis
2016-05-19Fix macro expansion backtrace diagnosticsJeffrey Seyfried-1/+1
2016-05-17Fix for #33559Jonathan Turner-1/+2
2016-05-17De-emph minimized spans, add better debugging outputJonathan Turner-0/+4
2016-05-17Print secondary labels as notes in old skool modeJonathan Turner-0/+3
2016-05-03Remove unused trait imports introduced while in reviewSeo Sanghyeon-1/+1
2016-05-02update unit testsNiko Matsakis-16/+5
2016-05-02Finish up with 'old school' error modeJonathan Turner-12/+63
2016-05-02Add back in a 'old school' error formatJonathan Turner-19/+97
2016-05-02fix snippet tests MORE!Niko Matsakis-1/+1
2016-05-02fix tests betterNiko Matsakis-2/+2
2016-05-02only emit `^` at the start of a multi-line errorNiko Matsakis-10/+5
as a result, simplify elision code
2016-05-02Nit: in emitter.rsNiko Matsakis-2/+1
2016-05-02Nit: address various style nitsNiko Matsakis-1/+6
2016-05-02refactor the Emitter traitNiko Matsakis-90/+73
There is now a CoreEmitter that everything desugars to, but without losing any information. Also remove RenderSpan::FileLine. This lets the rustc_driver tests build.
2016-05-02WIP factor out RudimentaryEmitterNiko Matsakis-16/+31
2016-05-02refactor to use new snippet code and modelNiko Matsakis-561/+235
Major changes: - Remove old snippet rendering code and use the new stuff. - Introduce `span_label` method to add a label - Remove EndSpan mode and replace with a fn to get the last character of a span. - Stop using `Option<MultiSpan>` and just use an empty `MultiSpan` - and probably a bunch of other stuff :)
2016-04-21port compiletest to use JSON outputNiko Matsakis-38/+9
This uncovered a lot of bugs in compiletest and also some shortcomings of our existing JSON output. We had to add information to the JSON output, such as suggested text and macro backtraces. We also had to fix various bugs in the existing tests. Joint work with jntrnr.
2016-03-22fix alignmentJorge Aparicio-12/+12
2016-03-22try! -> ?Jorge Aparicio-38/+38
Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry
2016-02-03Fix rendering of single-char-spanmitaa-10/+10
A span spanning only a single character would render like `^~` instead of just `^`.
2016-02-02Rollup merge of #31281 - oli-obk:patch-2, r=nikomatsakisSteve Klabnik-2/+2
2016-02-01Spans now derive equalityDaniel Campbell-5/+3
2016-01-30off by oneOliver Schneider-1/+1
2016-01-29Update emitter.rsmitaa-1/+1
2016-01-29fix overflow due to multiline error spanOliver Schneider-1/+1
2016-01-28Implement MultiSpan error reportingmitaa-201/+612
This allows to render multiple spans on one line, or to splice multiple replacements into a code suggestion.
2016-01-26Make emitter handle DUMMY_SP correctlyManish Goregaokar-2/+2
2016-01-15Add an --output option for specifying an error emitterNick Cameron-1/+1
2015-12-30Rebasing and review commentsNick Cameron-3/+3
2015-12-30use structured errorsNick Cameron-1/+1
2015-12-30Structured diagnosticsNick Cameron-4/+14
2015-12-17test errorsNick Cameron-1/+60
2015-12-17A little more refactoring inside emitter.rsNick Cameron-45/+35
2015-12-17Add the files I fogot about earlierNick Cameron-0/+631
d'oh