rust/src/test/ui/suggestions
bors 55aee8d496 Auto merge of #69255 - estebank:e0599-details, r=varkor
Add more context to E0599 errors

Point at the intermediary unfulfilled trait bounds.

Fix #52523, fix #61661, cc #36513, fix #68131, fix #64417, fix #61768, cc #57457, cc #9082, fix #57994, cc #64934, cc #65149.
2020-02-29 03:52:53 +00:00
..
auxiliary
dont-suggest-ref Update existing tests for or-patterns 2020-02-01 22:10:58 +00:00
as-ref.rs
as-ref.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
assoc-const-as-field.rs
assoc-const-as-field.stderr
assoc-type-in-method-return.rs
assoc-type-in-method-return.stderr
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr
attribute-typos.rs Ignore platforms that can't point to std 2020-01-10 11:40:30 -08:00
attribute-typos.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
borrow-for-loop-head.rs
borrow-for-loop-head.stderr
const-no-type.rs
const-no-type.stderr
const-pat-non-exaustive-let-new-var.rs
const-pat-non-exaustive-let-new-var.stderr
constrain-trait.fixed Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
constrain-trait.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
constrain-trait.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
dont-suggest-deref-inside-macro-issue-58298.rs
dont-suggest-deref-inside-macro-issue-58298.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
dont-suggest-try_into-in-macros.rs
dont-suggest-try_into-in-macros.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
expected-boxed-future-isnt-pinned.rs Add trait Self filtering to rustc_on_unimplemented 2020-02-12 17:26:49 -08:00
expected-boxed-future-isnt-pinned.stderr Add trait Self filtering to rustc_on_unimplemented 2020-02-12 17:26:49 -08:00
fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr
fn-missing-lifetime-in-item.rs Suggest 'r instead of 'lifetime 2020-02-05 10:32:01 -08:00
fn-missing-lifetime-in-item.stderr review comments: wording 2020-02-05 10:32:01 -08:00
fn-or-tuple-struct-with-underscore-args.rs
fn-or-tuple-struct-with-underscore-args.stderr
fn-or-tuple-struct-without-args.rs
fn-or-tuple-struct-without-args.stderr review comments 2020-01-08 09:29:47 -08:00
for-i-in-vec.fixed Suggest borrowing Vec<NonCopy> in for loop 2020-01-21 11:11:00 -08:00
for-i-in-vec.rs Suggest borrowing Vec<NonCopy> in for loop 2020-01-21 11:11:00 -08:00
for-i-in-vec.stderr use diagnostic_item and modify wording 2020-01-23 11:51:56 -08:00
format-borrow.rs
format-borrow.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
imm-ref-trait-object-literal.rs
imm-ref-trait-object-literal.stderr
imm-ref-trait-object.rs Deal with spans showing std lib 2020-02-02 13:51:23 -08:00
imm-ref-trait-object.stderr Deal with spans showing std lib 2020-02-02 13:51:23 -08:00
impl-trait-missing-lifetime.rs Account for impl Trait 2020-02-05 10:32:01 -08:00
impl-trait-missing-lifetime.stderr Account for impl Trait 2020-02-05 10:32:01 -08:00
impl-trait-return-trailing-semicolon.rs
impl-trait-return-trailing-semicolon.stderr
impl-trait-with-missing-trait-bounds-in-arg.fixed
impl-trait-with-missing-trait-bounds-in-arg.rs
impl-trait-with-missing-trait-bounds-in-arg.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
into-str.rs
into-str.stderr
issue-21673.rs
issue-21673.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
issue-51055-missing-semicolon-between-call-and-tuple.rs
issue-51055-missing-semicolon-between-call-and-tuple.stderr
issue-52820.rs
issue-52820.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
issue-57672.rs
issue-59819.fixed
issue-59819.rs
issue-59819.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
issue-61226.rs
issue-61226.stderr
issue-61963.rs
issue-61963.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
issue-62843.rs
issue-62843.stderr
issue-64252-self-type.rs
issue-64252-self-type.stderr parser: address review comments re. self. 2020-02-02 13:32:37 +01:00
issue-66968-suggest-sorted-words.rs add ui test 2020-01-04 10:58:04 -08:00
issue-66968-suggest-sorted-words.stderr add ui test 2020-01-04 10:58:04 -08:00
let-binding-init-expr-as-ty.rs Update tests for GATs 2019-12-21 12:35:28 +00:00
let-binding-init-expr-as-ty.stderr Update tests for GATs 2019-12-21 12:35:28 +00:00
match-ergonomics.rs
match-ergonomics.stderr check_pat_ref: use pattern_cause 2020-02-25 05:53:21 +01:00
match-needing-semi.fixed
match-needing-semi.rs
match-needing-semi.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
method-missing-parentheses.rs review comment: wording 2020-02-10 13:58:36 -08:00
method-missing-parentheses.stderr review comment: wording 2020-02-10 13:58:36 -08:00
mismatched-types-numeric-from.rs
mismatched-types-numeric-from.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
missing-assoc-fn-applicable-suggestions.fixed review comment 2020-02-08 21:08:59 -08:00
missing-assoc-fn-applicable-suggestions.rs When suggesting associated fn with type parameters, include in the structured suggestion 2020-02-04 18:20:10 -08:00
missing-assoc-fn-applicable-suggestions.stderr When suggesting associated fn with type parameters, include in the structured suggestion 2020-02-04 18:20:10 -08:00
missing-assoc-fn.rs When suggesting associated fn with type parameters, include in the structured suggestion 2020-02-04 18:20:10 -08:00
missing-assoc-fn.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
missing-assoc-type-bound-restriction.rs
missing-assoc-type-bound-restriction.stderr Use more accurate failed predicate spans 2020-02-02 11:53:09 -08:00
missing-trait-bounds-for-method-call.rs Suggest constraining type parameters 2020-02-28 11:37:59 -08:00
missing-trait-bounds-for-method-call.stderr Reword message 2020-02-28 11:37:59 -08:00
missing-trait-item.fixed review comment 2020-02-08 21:08:59 -08:00
missing-trait-item.rs
missing-trait-item.stderr
mut-borrow-needed-by-trait.rs Ignore output for some platforms with diverging test output 2020-02-28 12:01:29 -08:00
mut-borrow-needed-by-trait.stderr Ignore output for some platforms with diverging test output 2020-02-28 12:01:29 -08:00
mut-ref-reassignment.rs
mut-ref-reassignment.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
no-extern-crate-in-type.rs
no-extern-crate-in-type.stderr Suggest defining type parameter when appropriate 2020-01-26 10:57:18 -08:00
object-unsafe-trait-references-self.rs add tests for structured suggestion 2020-02-02 11:53:10 -08:00
object-unsafe-trait-references-self.stderr add tests for structured suggestion 2020-02-02 11:53:10 -08:00
object-unsafe-trait-should-use-self.rs When object unsafe trait uses itself in associated item suggest using Self 2020-02-02 11:52:34 -08:00
object-unsafe-trait-should-use-self.stderr Use more appropriate spans on object unsafe traits and provide structured suggestions when possible 2020-02-02 11:53:10 -08:00
object-unsafe-trait-should-use-where-sized.fixed add tests for structured suggestion 2020-02-02 11:53:10 -08:00
object-unsafe-trait-should-use-where-sized.rs add tests for structured suggestion 2020-02-02 11:53:10 -08:00
object-unsafe-trait-should-use-where-sized.stderr add tests for structured suggestion 2020-02-02 11:53:10 -08:00
opaque-type-error.rs Add backticks to various diagnostics 2020-01-05 00:17:46 +00:00
opaque-type-error.stderr review comments 2020-01-08 09:29:47 -08:00
option-content-move2.rs Don't suggest wrong snippet in closure 2019-12-12 11:13:13 +09:00
option-content-move2.stderr Don't suggest wrong snippet in closure 2019-12-12 11:13:13 +09:00
option-content-move.fixed
option-content-move.rs
option-content-move.stderr
path-by-value.rs
path-by-value.stderr
path-display.rs
path-display.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
raw-name-use-suggestion.rs Accurately portray raw identifiers in error messages 2019-12-03 19:01:42 -08:00
raw-name-use-suggestion.stderr Accurately portray raw identifiers in error messages 2019-12-03 19:01:42 -08:00
recover-from-semicolon-trailing-item.rs
recover-from-semicolon-trailing-item.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
recover-invalid-float.fixed
recover-invalid-float.rs
recover-invalid-float.stderr
remove-as_str.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
remove-as_str.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
restrict-type-argument.rs
restrict-type-argument.stderr Improve reporting errors and suggestions for trait bounds 2020-02-09 10:33:47 +01:00
return-without-lifetime.rs
return-without-lifetime.stderr Account for fn() types in lifetime suggestions 2020-02-05 10:32:01 -08:00
struct-initializer-comma.rs Suggest a comma if a struct initializer field fails to parse 2020-02-14 22:28:13 -05:00
struct-initializer-comma.stderr Suggest a comma if a struct initializer field fails to parse 2020-02-14 22:28:13 -05:00
suggest-assoc-fn-call-with-turbofish-through-deref.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-assoc-fn-call-with-turbofish-through-deref.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-assoc-fn-call-with-turbofish.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-assoc-fn-call-with-turbofish.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-box.fixed
suggest-box.rs
suggest-box.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
suggest-closure-return-type-1.rs
suggest-closure-return-type-1.stderr
suggest-closure-return-type-2.rs
suggest-closure-return-type-2.stderr
suggest-closure-return-type-3.rs
suggest-closure-return-type-3.stderr
suggest-impl-trait-lifetime.fixed Tweak binding lifetime suggestion text 2020-02-19 18:04:03 -08:00
suggest-impl-trait-lifetime.nll.stderr
suggest-impl-trait-lifetime.rs Tweak binding lifetime suggestion text 2020-02-19 18:04:03 -08:00
suggest-impl-trait-lifetime.stderr Tweak binding lifetime suggestion text 2020-02-19 18:04:03 -08:00
suggest-labels.rs
suggest-labels.stderr
suggest-methods.rs
suggest-methods.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-move-lifetimes.rs
suggest-move-lifetimes.stderr
suggest-move-types.rs Move generic arg / param validation to create_substs_for_generic_args 2020-02-22 00:28:18 +00:00
suggest-move-types.stderr Add note regarding argument ordering 2020-02-22 11:34:29 +00:00
suggest-on-bare-closure-call.rs
suggest-on-bare-closure-call.stderr
suggest-private-fields.rs
suggest-private-fields.stderr
suggest-ref-mut.rs
suggest-ref-mut.stderr
suggest-remove-refs-1.rs
suggest-remove-refs-1.stderr Improve reporting errors and suggestions for trait bounds 2020-02-09 10:33:47 +01:00
suggest-remove-refs-2.rs
suggest-remove-refs-2.stderr
suggest-remove-refs-3.rs
suggest-remove-refs-3.stderr
suggest-split-at-mut.rs Suggest split_at_mut on multiple mutable index access 2020-02-03 18:00:14 -08:00
suggest-split-at-mut.stderr Suggest split_at_mut on multiple mutable index access 2020-02-03 18:00:14 -08:00
suggest-std-when-using-type.rs
suggest-std-when-using-type.stderr
suggest-variants.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
suggest-variants.stderr Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
type-ascription-instead-of-let.rs
type-ascription-instead-of-let.stderr
type-ascription-instead-of-method.rs
type-ascription-instead-of-method.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
type-ascription-instead-of-path-2.rs
type-ascription-instead-of-path-2.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
type-ascription-instead-of-path.rs
type-ascription-instead-of-path.stderr
type-ascription-instead-of-variant.rs
type-ascription-instead-of-variant.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
type-mismatch-struct-field-shorthand-2.rs
type-mismatch-struct-field-shorthand-2.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
type-mismatch-struct-field-shorthand.fixed
type-mismatch-struct-field-shorthand.rs
type-mismatch-struct-field-shorthand.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
unused-closure-argument.rs
unused-closure-argument.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
use-type-argument-instead-of-assoc-type.rs
use-type-argument-instead-of-assoc-type.stderr Account for multiple trait bounds with missing associated types 2019-12-24 22:23:02 -08:00
vec-macro-in-pattern.fixed
vec-macro-in-pattern.rs
vec-macro-in-pattern.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00