rust/src/test/ui/codemap_tests
Felix S. Klock II a5a3f765eb NLL: On "cannot move out of type" error, print original source before rewrite.
* Arguably this change is sometimes injecting noise into the output
   (namely in the cases where the suggested rewrite is inline with the
   suggestion and we end up highlighting the original source code).
   I would not be opposed to something more aggressive/dynamic, like
   revising the suggestion code to automatically print the original
   source when necessary (e.g. when the error does not have a span
   that includes the span of the suggestion).

 * Also, as another note on this change: The doc comment for `Diagnostic::span_suggestion`
   says:
    /// The message
    ///
    /// * should not end in any punctuation (a `:` is added automatically)
    /// * should not be a question
    /// * should not contain any parts like "the following", "as shown"

   but the `:` is *not* added when the emitted line appears
   out-of-line relative to the suggestion. I find that to be an
   unfortunate UI experience.

----

As a drive-by fix, also changed code to combine multiple suggestions
for a pattern into a single multipart suggestion (which vastly
improves user experience IMO).

----

Includes the updates to expected NLL diagnostics.
2018-07-31 17:27:29 +02:00
..
bad-format-args.rs Match errors using the callsite of macro expansions 2018-07-23 14:31:06 +02:00
bad-format-args.stderr Match errors using the callsite of macro expansions 2018-07-23 14:31:06 +02:00
coherence-overlapping-inherent-impl-trait.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
coherence-overlapping-inherent-impl-trait.stderr update tests 2018-03-14 00:53:24 +01:00
empty_span.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
empty_span.stderr Rollup merge of #49037 - estebank:coherence-tweaks, r=nikomatsakis 2018-03-16 05:38:11 +08:00
huge_multispan_highlight.nll.stderr Update tests for new NLL mutability errors 2018-07-20 20:01:15 +01:00
huge_multispan_highlight.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
huge_multispan_highlight.stderr update tests 2018-03-14 00:53:24 +01:00
issue-11715.nll.stderr rust-lang/rust#51025: improve test robustness so that they work under NLL too. 2018-05-25 13:00:51 +02:00
issue-11715.rs rust-lang/rust#51025: improve test robustness so that they work under NLL too. 2018-05-25 13:00:51 +02:00
issue-11715.stderr rust-lang/rust#51025: improve test robustness so that they work under NLL too. 2018-05-25 13:00:51 +02:00
issue-28308.rs Fix test 2018-03-08 03:05:58 +09:00
issue-28308.stderr unary op filter, dereference hint 2018-05-11 15:12:53 +03:00
one_line.nll.stderr Checkpoint the current status of NLL on ui tests via compare-mode=nll. 2018-04-11 00:38:35 +02:00
one_line.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
one_line.stderr update tests 2018-03-14 00:53:24 +01:00
overlapping_inherent_impls.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
overlapping_inherent_impls.stderr update tests 2018-03-14 00:53:24 +01:00
overlapping_spans.nll.stderr NLL: On "cannot move out of type" error, print original source before rewrite. 2018-07-31 17:27:29 +02:00
overlapping_spans.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
overlapping_spans.stderr update tests 2018-03-14 00:53:24 +01:00
tab.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
tab.stderr update tests 2018-03-14 00:53:24 +01:00
tab_2.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
tab_2.stderr Update UI tests 2018-02-26 20:24:02 +03:00
tab_3.nll.stderr Checkpoint the current status of NLL on ui tests via compare-mode=nll. 2018-04-11 00:38:35 +02:00
tab_3.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
tab_3.stderr update tests 2018-03-14 00:53:24 +01:00
two_files.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
two_files.stderr Update tests 2018-03-16 11:52:46 +01:00
two_files_data.rs RUST_NEW_ERROR_FORMAT is no more 2016-08-16 16:52:30 +09:00
unicode.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
unicode.stderr Add the amdgpu-kernel ABI. 2018-07-13 17:22:23 -05:00
unicode_2.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
unicode_2.stderr update tests 2018-03-14 00:53:24 +01:00
unicode_3.rs Rename must-compile-successfully into compile-pass 2018-04-13 23:28:03 +02:00
unicode_3.stderr Update UI tests 2018-02-26 20:24:02 +03:00