| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-06-23 | Move errors from libsyntax to its own crate | Jonathan Turner | -3434/+0 | |
| 2016-06-16 | Add an abs_path member to FileMap, use it when writing debug info. | Ted Mielczarek | -19/+19 | |
| 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-24 | Back to single line between errors. Add header space to secondary files | Jonathan Turner | -1/+26 | |
| 2016-05-23 | Update error format for readability. Add spacing header<->snippet and ↵ | Jonathan Turner | -1/+8 | |
| another line between errors | ||||
| 2016-05-19 | Rollup 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-18 | Auto merge of #33688 - jonathandturner:fix_old_school, r=nikomatsakis | bors | -10/+54 | |
| Fix for old school error issues, improvements to new school This PR: * Fixes some old school error issues, specifically #33559, #33543, #33366 * Improves wording borrowck errors with match patterns * De-emphasize multi-line spans, so we don't color the single source character when we're trying to say "span starts here" * Rollup of #33392 (which should help fix #33390) r? @nikomatsakis | ||||
| 2016-05-19 | Fix macro expansion backtrace diagnostics | Jeffrey Seyfried | -1/+1 | |
| 2016-05-17 | fix -Z treat-err-as-bug | Niko Matsakis | -30/+30 | |
| 2016-05-17 | Fix for #33559 | Jonathan Turner | -1/+2 | |
| 2016-05-17 | Improve a few errors and fix #33366 | Jonathan Turner | -2/+2 | |
| 2016-05-17 | De-emph minimized spans, add better debugging output | Jonathan Turner | -10/+27 | |
| 2016-05-17 | Print secondary labels as notes in old skool mode | Jonathan Turner | -0/+26 | |
| 2016-05-15 | Auto merge of #33619 - jonathandturner:improve_structured_errors, r=nikomatsakis | bors | -4/+5 | |
| Batch of improvements to errors for new error format This is a batch of improvements to existing errors to help get the most out of the new error format. * Added labels to primary spans (^^^) for a set of errors that didn't currently have them * Highlight the source blue under the secondary notes for better readability * Move some of the "Note:" into secondary spans+labels * Fix span_label to take &mut instead, which makes it work the same as other methods in that set | ||||
| 2016-05-13 | Auto merge of #33513 - sanxiyn:tab-in-error, r=nikomatsakis | bors | -2/+32 | |
| Better handling of tab in error cc #33240. | ||||
| 2016-05-12 | Update errors to use new error format | Jonathan Turner | -4/+4 | |
| 2016-05-12 | Set of fixes to improve borrowcks that weren't updated | Jonathan Turner | -0/+1 | |
| 2016-05-12 | Better handling of tab in error | Seo Sanghyeon | -2/+32 | |
| 2016-05-09 | Auto merge of #33484 - murarth:diagnostic-builder-fields, r=brson | bors | -0/+8 | |
| Add accessor methods to DiagnosticBuilder | ||||
| 2016-05-08 | Rollup merge of #33369 - nikomatsakis:graceful-empty-span, r=jntrnr | Manish Goregaokar | -1/+49 | |
| degrade gracefully with empty spans In https://github.com/rust-lang/rust/pull/32756, we solved the final test failure, but digging more into it the handling of that scenario could be better. The error was caused by an empty span supplied by the parser representing EOF. This patch checks that we cope more gracefully with such spans: r? @jonathandturner | ||||
| 2016-05-07 | Add accessor methods to DiagnosticBuilder | Murarth | -0/+8 | |
| 2016-05-03 | Remove unused trait imports introduced while in review | Seo Sanghyeon | -1/+1 | |
| 2016-05-03 | degrade gracefully with empty spans | Niko Matsakis | -1/+49 | |
| 2016-05-02 | assert we get at least two rendered lines back | Niko Matsakis | -2/+5 | |
| 2016-05-02 | avoid double panic | Niko Matsakis | -1/+2 | |
| 2016-05-02 | do not fail if len(rendered_lines) is == 1 | Niko Matsakis | -10/+14 | |
| also handle more rendered-lines | ||||
| 2016-05-02 | update unit tests | Niko Matsakis | -39/+38 | |
| 2016-05-02 | Finish up with 'old school' error mode | Jonathan Turner | -12/+63 | |
| 2016-05-02 | Add back in a 'old school' error format | Jonathan Turner | -50/+201 | |
| 2016-05-02 | change color of warning to YELLOW | Niko Matsakis | -1/+1 | |
| 2016-05-02 | fix snippet tests MORE! | Niko Matsakis | -2/+2 | |
| 2016-05-02 | Nit: use Range::contains | Niko Matsakis | -7/+2 | |
| 2016-05-02 | fix tests better | Niko Matsakis | -5/+5 | |
| 2016-05-02 | only emit `^` at the start of a multi-line error | Niko Matsakis | -143/+67 | |
| as a result, simplify elision code | ||||
| 2016-05-02 | Nit: use last_mut better | Niko Matsakis | -4/+3 | |
| 2016-05-02 | Nit: in emitter.rs | Niko Matsakis | -2/+1 | |
| 2016-05-02 | Nit: address various style nits | Niko Matsakis | -5/+10 | |
| 2016-05-02 | Nit: do not use RLK | Niko Matsakis | -12/+14 | |
| 2016-05-02 | Nit: do not import variants from Style | Niko Matsakis | -24/+23 | |
| 2016-05-02 | Do not import variants from RenderedLineKind | Niko Matsakis | -12/+12 | |
| 2016-05-02 | refactor the Emitter trait | Niko Matsakis | -98/+74 | |
| 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-02 | change errors from Yellow to Magenta | Niko Matsakis | -1/+1 | |
| The Yellow text is very hard to read with a white background. | ||||
| 2016-05-02 | WIP factor out RudimentaryEmitter | Niko Matsakis | -16/+31 | |
| 2016-05-02 | refactor to use new snippet code and model | Niko Matsakis | -649/+322 | |
| 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-05-02 | adapt JSON to new model | Niko Matsakis | -119/+83 | |
| Each Span now carries a `is_primary` boolean along with an optional label. If there are multiple labels for a span, it will appear multiple times. | ||||
| 2016-05-02 | revamp MultiSpan and introduce new snippet code | Niko Matsakis | -0/+1345 | |
| MultiSpan model is now: - set of primary spans - set of span+label pairs Primary spans render with `^^^`, secondary spans with `---`. Labels are placed next to the `^^^` or `---` marker as appropriate. | ||||
| 2016-04-27 | Make some fatal lexer errors recoverable | mitaa | -0/+2 | |
| 2016-04-21 | pacify the merciless acrichto (somewhat) | Niko Matsakis | -8/+6 | |
| Also add a comment or two to pacify the merciless self-critic, who hates a closure without a comment. | ||||
| 2016-04-21 | port compiletest to use JSON output | Niko Matsakis | -122/+176 | |
| 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-04-12 | Remove unused trait imports | Seo Sanghyeon | -3/+0 | |
| 2016-04-04 | Give better spans for SpanEnd errors | Nick Cameron | -15/+60 | |
