rust/src/test/ui/suggestions
2021-05-02 13:58:38 +02:00
..
auxiliary Add regression test 2021-02-18 16:47:01 +03:00
dont-suggest-ref
lifetimes Suggest box/pin/arc ing receiver on method calls 2021-03-29 18:14:44 -07:00
adt-param-with-implicit-sized-bound.rs
adt-param-with-implicit-sized-bound.stderr give full path of constraint in suggest_constraining_type_param 2021-03-31 09:47:31 +08:00
as-ref-2.fixed Suggest .as_ref() on borrow error involving Option/Result 2021-04-19 17:14:37 -07:00
as-ref-2.rs Suggest .as_ref() on borrow error involving Option/Result 2021-04-19 17:14:37 -07:00
as-ref-2.stderr Suggest .as_ref() on borrow error involving Option/Result 2021-04-19 17:14:37 -07:00
as-ref.rs Suggest .as_ref() on borrow error involving Option/Result 2021-04-19 17:14:37 -07:00
as-ref.stderr Suggest .as_ref() on borrow error involving Option/Result 2021-04-19 17:14:37 -07:00
assoc-const-as-field.rs
assoc-const-as-field.stderr
assoc-type-in-method-return.rs
assoc-type-in-method-return.stderr Suggest calling associated fn inside traits 2020-10-26 16:31:11 -07:00
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
attribute-typos.stderr
borrow-for-loop-head.rs
borrow-for-loop-head.stderr Change wording of note 2021-01-08 14:57:35 -05:00
chain-method-call-mutation-in-place.rs
chain-method-call-mutation-in-place.stderr
const-in-struct-pat.rs
const-in-struct-pat.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
constrain-trait.rs
constrain-trait.stderr
do-not-attempt-to-add-suggestions-with-no-changes.rs Fix ICE caused by suggestion with no code substitutions 2021-02-13 19:52:12 -08:00
do-not-attempt-to-add-suggestions-with-no-changes.stderr Fix ICE caused by suggestion with no code substitutions 2021-02-13 19:52:12 -08:00
dont-suggest-deref-inside-macro-issue-58298.rs
dont-suggest-deref-inside-macro-issue-58298.stderr
dont-suggest-try_into-in-macros.rs
dont-suggest-try_into-in-macros.stderr
expected-boxed-future-isnt-pinned.rs
expected-boxed-future-isnt-pinned.stderr fix rustc_on_implemented _Self paths 2021-03-26 21:22:03 +01:00
field-access.fixed Improve wording of suggestion about accessing field 2021-02-02 15:16:07 +09:00
field-access.rs Improve wording of suggestion about accessing field 2021-02-02 15:16:07 +09:00
field-access.stderr Improve wording of suggestion about accessing field 2021-02-02 15:16:07 +09: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
fn-missing-lifetime-in-item.stderr
fn-needing-specified-return-type-param.rs
fn-needing-specified-return-type-param.stderr
fn-or-tuple-struct-with-underscore-args.rs Add underscore expressions for destructuring assignments 2020-11-14 13:53:12 +00:00
fn-or-tuple-struct-with-underscore-args.stderr Add underscore expressions for destructuring assignments 2020-11-14 13:53:12 +00:00
fn-or-tuple-struct-without-args.rs
fn-or-tuple-struct-without-args.stderr
fn-trait-notation.fixed
fn-trait-notation.rs
fn-trait-notation.stderr
for-i-in-vec.fixed
for-i-in-vec.rs
for-i-in-vec.stderr
format-borrow.rs
format-borrow.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
if-let-typo.rs Implement destructuring assignment for structs and slices 2020-11-11 12:10:52 +00:00
if-let-typo.stderr Implement destructuring assignment for structs and slices 2020-11-11 12:10:52 +00:00
imm-ref-trait-object-literal-bound-regions.rs
imm-ref-trait-object-literal-bound-regions.stderr
imm-ref-trait-object-literal.rs
imm-ref-trait-object-literal.stderr
imm-ref-trait-object.rs
imm-ref-trait-object.stderr
impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.nll.stderr
impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs
impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr
impl-on-dyn-trait-with-implicit-static-bound.fixed
impl-on-dyn-trait-with-implicit-static-bound.nll.stderr Update ui tests (nll) 2021-02-02 18:57:34 +01:00
impl-on-dyn-trait-with-implicit-static-bound.rs
impl-on-dyn-trait-with-implicit-static-bound.stderr
impl-trait-missing-lifetime.rs
impl-trait-missing-lifetime.stderr
impl-trait-return-trailing-semicolon.rs
impl-trait-return-trailing-semicolon.stderr
impl-trait-with-missing-bounds.rs Handle desugaring in impl trait bound suggestion 2020-12-19 20:37:51 -05:00
impl-trait-with-missing-bounds.stderr Handle desugaring in impl trait bound suggestion 2020-12-19 20:37:51 -05:00
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
import-trait-for-method-call.rs Add regression test 2021-04-23 18:08:51 -07:00
import-trait-for-method-call.stderr Tweak suggestion output 2021-04-23 18:57:52 -07:00
into-str.rs
into-str.stderr fix rustc_on_implemented _Self paths 2021-03-26 21:22:03 +01:00
invalid-bin-op.rs
invalid-bin-op.stderr
issue-21673.rs
issue-21673.stderr
issue-51055-missing-semicolon-between-call-and-tuple.rs
issue-51055-missing-semicolon-between-call-and-tuple.stderr reword ; suggestions to have consistent wording 2021-02-21 16:27:29 -08:00
issue-52820.rs
issue-52820.stderr
issue-57672.rs
issue-59819.fixed
issue-59819.rs
issue-59819.stderr
issue-61226.fixed
issue-61226.rs
issue-61226.stderr
issue-61963.rs
issue-61963.stderr
issue-62843.rs
issue-62843.stderr
issue-64252-self-type.rs
issue-64252-self-type.stderr
issue-66968-suggest-sorted-words.rs
issue-66968-suggest-sorted-words.stderr
issue-71394-no-from-impl.rs
issue-71394-no-from-impl.stderr
issue-72766.rs
issue-72766.stderr Tweak "use .await" suggestion 2020-10-23 08:02:57 -07:00
issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs Handle desugaring in impl trait bound suggestion 2020-12-19 20:37:51 -05:00
issue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr Handle desugaring in impl trait bound suggestion 2020-12-19 20:37:51 -05:00
issue-81098.rs Refine "remove semicolon" suggestion in trait selection 2021-01-26 13:23:30 +03:00
issue-81098.stderr Refine "remove semicolon" suggestion in trait selection 2021-01-26 13:23:30 +03:00
issue-81839.rs Add regression test 2021-02-18 16:47:01 +03:00
issue-81839.stderr clarifies error when finding mismatched returned types for async functions 2021-02-24 18:46:54 -08:00
issue-82361.fixed Improve error msgs when found type is deref of expected 2021-02-23 10:50:06 +03:00
issue-82361.rs Improve error msgs when found type is deref of expected 2021-02-23 10:50:06 +03:00
issue-82361.stderr Account for ExprKind::Block when suggesting .into() and deref 2021-04-06 17:23:48 -07:00
issue-82566-1.rs Recover from X<Y,Z> when parsing const expr 2021-02-27 14:06:57 +03:00
issue-82566-1.stderr Recover from X<Y,Z> when parsing const expr 2021-02-27 14:06:57 +03:00
issue-82566-2.rs Recover from X<Y,Z> when parsing const expr 2021-02-27 14:06:57 +03:00
issue-82566-2.stderr Recover from X<Y,Z> when parsing const expr 2021-02-27 14:06:57 +03:00
issue-83892.fixed Use a more appropriate span for ; suggestion 2021-04-06 19:23:22 -07:00
issue-83892.rs Use a more appropriate span for ; suggestion 2021-04-06 19:23:22 -07:00
issue-83892.stderr Use a more appropriate span for ; suggestion 2021-04-06 19:23:22 -07:00
issue-83943.fixed Account for ExprKind::Block when suggesting .into() and deref 2021-04-06 17:23:48 -07:00
issue-83943.rs Account for ExprKind::Block when suggesting .into() and deref 2021-04-06 17:23:48 -07:00
issue-83943.stderr Account for ExprKind::Block when suggesting .into() and deref 2021-04-06 17:23:48 -07:00
issue-84700.rs add suggestion for unit enum variant when matched with a patern 2021-05-02 13:58:38 +02:00
issue-84700.stderr add suggestion for unit enum variant when matched with a patern 2021-05-02 13:58:38 +02:00
js-style-comparison-op-separate-eq-token.rs
js-style-comparison-op-separate-eq-token.stderr
js-style-comparison-op.fixed
js-style-comparison-op.rs
js-style-comparison-op.stderr
let-binding-init-expr-as-ty.rs
let-binding-init-expr-as-ty.stderr
match-ergonomics.rs
match-ergonomics.stderr
match-needing-semi.rs Do not suggest ; if expression is side effect free 2021-02-21 16:34:37 -08:00
match-needing-semi.stderr Do not suggest ; if expression is side effect free 2021-02-21 16:34:37 -08:00
match-prev-arm-needing-semi.rs clarifies error when finding mismatched returned types for async functions 2021-02-24 18:46:54 -08:00
match-prev-arm-needing-semi.stderr clarifies error when finding mismatched returned types for async functions 2021-02-24 18:46:54 -08:00
match-with-different-arm-types-as-stmt-instead-of-expr.rs Detect match statement intended to be tail expression 2021-02-25 09:16:48 -08:00
match-with-different-arm-types-as-stmt-instead-of-expr.stderr Detect match statement intended to be tail expression 2021-02-25 09:16:48 -08:00
method-missing-parentheses.rs
method-missing-parentheses.stderr
mismatched-types-numeric-from.rs
mismatched-types-numeric-from.stderr
missing-assoc-fn-applicable-suggestions.fixed
missing-assoc-fn-applicable-suggestions.rs
missing-assoc-fn-applicable-suggestions.stderr
missing-assoc-fn.rs
missing-assoc-fn.stderr
missing-assoc-type-bound-restriction.rs
missing-lifetime-in-assoc-const-type.rs
missing-lifetime-in-assoc-const-type.stderr
missing-lifetime-specifier.rs Rework diagnostics for wrong number of generic args 2021-01-10 13:07:40 +01:00
missing-lifetime-specifier.stderr resolve late lifetimes by item 2021-03-24 16:45:41 -04:00
missing-lt-for-hrtb.rs
missing-lt-for-hrtb.stderr
missing-trait-bound-for-op.fixed
missing-trait-bound-for-op.rs
missing-trait-bound-for-op.stderr
missing-trait-bounds-for-method-call.rs Avoid describing a method as 'not found' when bounds are unsatisfied 2021-01-26 23:59:50 -05:00
missing-trait-bounds-for-method-call.stderr Avoid sorting predicates by DefId 2021-03-13 13:45:12 -05:00
missing-trait-item.fixed
missing-trait-item.rs
missing-trait-item.stderr
mut-borrow-needed-by-trait.rs Avoid describing a method as 'not found' when bounds are unsatisfied 2021-01-26 23:59:50 -05:00
mut-borrow-needed-by-trait.stderr More precise spans for HIR paths 2021-03-15 22:13:45 +03:00
mut-ref-reassignment.rs
mut-ref-reassignment.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
no-extern-crate-in-type.rs
no-extern-crate-in-type.stderr
non-existent-field-present-in-subfield-recursion-limit.rs add suggestion for nested fields 2021-01-30 23:19:41 +01:00
non-existent-field-present-in-subfield-recursion-limit.stderr add suggestion for nested fields 2021-01-30 23:19:41 +01:00
non-existent-field-present-in-subfield.fixed Fix non-existent-field ICE for generic fields. 2021-02-03 18:36:48 +01:00
non-existent-field-present-in-subfield.rs Fix non-existent-field ICE for generic fields. 2021-02-03 18:36:48 +01:00
non-existent-field-present-in-subfield.stderr add suggestion for nested fields 2021-01-30 23:19:41 +01:00
object-unsafe-trait-references-self.rs
object-unsafe-trait-references-self.stderr review comments 2020-10-20 09:26:15 -07:00
object-unsafe-trait-should-use-self.rs
object-unsafe-trait-should-use-self.stderr review comments 2020-10-20 09:26:15 -07:00
object-unsafe-trait-should-use-where-sized.fixed Tweak "object unsafe" errors 2020-10-20 09:26:14 -07:00
object-unsafe-trait-should-use-where-sized.rs
object-unsafe-trait-should-use-where-sized.stderr review comments 2020-10-20 09:26:15 -07:00
opaque-type-error.rs
opaque-type-error.stderr Add more .await suggestions on E0308 2020-10-23 08:06:41 -07:00
option-content-move2.rs
option-content-move2.stderr
option-content-move.fixed
option-content-move.rs
option-content-move.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
path-by-value.rs
path-by-value.stderr fix suggestion for unsized function parameters 2021-04-19 20:06:19 +02:00
path-display.rs
path-display.stderr fix rustc_on_implemented _Self paths 2021-03-26 21:22:03 +01:00
raw-name-use-suggestion.rs
raw-name-use-suggestion.stderr
recover-from-semicolon-trailing-item.rs
recover-from-semicolon-trailing-item.stderr
recover-invalid-float.fixed
recover-invalid-float.rs
recover-invalid-float.stderr
recover-missing-turbofish-surrounding-angle-braket.rs
recover-missing-turbofish-surrounding-angle-braket.stderr
remove-as_str.rs
remove-as_str.stderr
restrict-type-argument.rs
restrict-type-argument.stderr give full path of constraint in suggest_constraining_type_param 2021-03-31 09:47:31 +08:00
return-without-lifetime.rs
return-without-lifetime.stderr
struct-initializer-comma.fixed
struct-initializer-comma.rs
struct-initializer-comma.stderr
suggest-assoc-fn-call-with-turbofish-through-deref.rs
suggest-assoc-fn-call-with-turbofish-through-deref.stderr
suggest-assoc-fn-call-with-turbofish.rs
suggest-assoc-fn-call-with-turbofish.stderr
suggest-box.fixed
suggest-box.rs
suggest-box.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
suggest-change-mut.rs In some limited cases, suggest where bounds for non-type params 2021-02-17 09:26:40 -08:00
suggest-change-mut.stderr In some limited cases, suggest where bounds for non-type params 2021-02-17 09:26:40 -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
suggest-impl-trait-lifetime.nll.stderr
suggest-impl-trait-lifetime.rs
suggest-impl-trait-lifetime.stderr
suggest-labels.rs
suggest-labels.stderr
suggest-methods.rs
suggest-methods.stderr
suggest-move-lifetimes.rs
suggest-move-lifetimes.stderr update tests 2020-12-26 18:24:10 +01:00
suggest-move-types.rs
suggest-move-types.stderr improve error message for const ty param mismatch 2020-11-16 16:07:59 +01:00
suggest-mut-method-for-loop.rs Add test 2021-02-05 22:12:31 +09:00
suggest-mut-method-for-loop.stderr Add test 2021-02-05 22:12:31 +09: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.fixed
suggest-remove-refs-1.rs
suggest-remove-refs-1.stderr Fix tests from rebase 2020-10-06 11:19:33 +01:00
suggest-remove-refs-2.fixed
suggest-remove-refs-2.rs
suggest-remove-refs-2.stderr Fix tests from rebase 2020-10-06 11:19:33 +01:00
suggest-remove-refs-3.fixed
suggest-remove-refs-3.rs
suggest-remove-refs-3.stderr Fix tests from rebase 2020-10-06 11:19:33 +01:00
suggest-split-at-mut.rs
suggest-split-at-mut.stderr
suggest-std-when-using-type.rs
suggest-std-when-using-type.stderr More precise spans for HIR paths 2021-03-15 22:13:45 +03:00
suggest-variants.rs
suggest-variants.stderr
trait-with-missing-associated-type-restriction-fixable.fixed
trait-with-missing-associated-type-restriction-fixable.rs
trait-with-missing-associated-type-restriction-fixable.stderr
trait-with-missing-associated-type-restriction.rs
trait-with-missing-associated-type-restriction.stderr
type-ascription-instead-of-let.rs
type-ascription-instead-of-let.stderr
type-ascription-instead-of-method.fixed
type-ascription-instead-of-method.rs
type-ascription-instead-of-method.stderr
type-ascription-instead-of-path-2.fixed
type-ascription-instead-of-path-2.rs
type-ascription-instead-of-path-2.stderr
type-ascription-instead-of-path.rs
type-ascription-instead-of-path.stderr
type-ascription-instead-of-variant.fixed
type-ascription-instead-of-variant.rs
type-ascription-instead-of-variant.stderr
type-mismatch-struct-field-shorthand-2.rs
type-mismatch-struct-field-shorthand-2.stderr
type-mismatch-struct-field-shorthand.fixed
type-mismatch-struct-field-shorthand.rs
type-mismatch-struct-field-shorthand.stderr
type-not-found-in-adt-field.rs
type-not-found-in-adt-field.stderr
unused-closure-argument.rs
unused-closure-argument.stderr
use-type-argument-instead-of-assoc-type.rs Rework diagnostics for wrong number of generic args 2021-01-10 13:07:40 +01:00
use-type-argument-instead-of-assoc-type.stderr Rework diagnostics for wrong number of generic args 2021-01-10 13:07:40 +01:00