rust/src/test/ui/suggestions
Mazdak Farrokhzad 62d85849d0 Add parser recovery for const $ident = $expr;.
Then use the diagnostics-stealing API to stash parser
errors and enrich them with type information in typeck.
2019-09-23 17:50:07 +02:00
..
auxiliary tests: Add minimal reproduction of #61963. 2019-07-20 19:17:26 +01:00
dont-suggest-ref Cherry-pick src/test changes with Centril's changes 2019-08-19 22:31:46 +01:00
as-ref.rs
as-ref.stderr
assoc-const-as-field.rs
assoc-const-as-field.stderr
assoc-type-in-method-return.rs Suggest assoc type on type not found in trait method definition 2019-07-13 21:17:38 -07:00
assoc-type-in-method-return.stderr Suggest assoc type on type not found in trait method definition 2019-07-13 21:17:38 -07:00
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs Suggest call fn ctor passed as arg to fn with type param bounds 2019-08-31 00:14:23 -07:00
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr On obligation errors point at the unfulfilled binding when possible 2019-09-22 11:33:12 -07:00
attribute-typos.rs resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
attribute-typos.stderr resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
borrow-for-loop-head.rs
borrow-for-loop-head.stderr Suggest borrowing for loop head on move error 2019-05-24 18:23:43 -07:00
const-no-type.rs Add parser recovery for const $ident = $expr;. 2019-09-23 17:50:07 +02:00
const-no-type.stderr Add parser recovery for const $ident = $expr;. 2019-09-23 17:50:07 +02:00
dont-suggest-deref-inside-macro-issue-58298.rs
dont-suggest-deref-inside-macro-issue-58298.stderr
dont-suggest-try_into-in-macros.rs Do not suggest try_into for base types inside of macro expansions 2019-08-15 11:46:52 -07:00
dont-suggest-try_into-in-macros.stderr Do not suggest try_into for base types inside of macro expansions 2019-08-15 11:46:52 -07:00
fn-ctor-passed-as-arg-where-it-should-have-been-called.rs Suggest call fn ctor passed as arg to fn with type param bounds 2019-08-31 00:14:23 -07:00
fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr On obligation errors point at the unfulfilled binding when possible 2019-09-22 11:33:12 -07:00
fn-or-tuple-struct-with-underscore-args.rs Recover parser from foo(_, _) 2019-08-09 07:18:05 -07:00
fn-or-tuple-struct-with-underscore-args.stderr Recover parser from foo(_, _) 2019-08-09 07:18:05 -07:00
fn-or-tuple-struct-without-args.rs Suggest calling closure with resolved return type when appropriate 2019-08-23 11:59:04 -07:00
fn-or-tuple-struct-without-args.stderr Suggest calling closure with resolved return type when appropriate 2019-08-23 11:59:04 -07:00
format-borrow.rs
format-borrow.stderr
impl-trait-return-trailing-semicolon.rs
impl-trait-return-trailing-semicolon.stderr
impl-trait-with-missing-trait-bounds-in-arg.fixed Correctly suggest adding bounds to impl Trait argument 2019-08-22 10:15:57 -07:00
impl-trait-with-missing-trait-bounds-in-arg.rs Correctly suggest adding bounds to impl Trait argument 2019-08-22 10:15:57 -07:00
impl-trait-with-missing-trait-bounds-in-arg.stderr Give method not found a primary span label 2019-09-08 18:27:02 -07:00
into-str.rs
into-str.stderr On obligation errors point at the unfulfilled binding when possible 2019-09-22 11:33:12 -07:00
issue-21673.rs Suggest trait bound on type parameter when it is unconstrained 2019-07-18 11:50:50 -07:00
issue-21673.stderr Give method not found a primary span label 2019-09-08 18:27:02 -07:00
issue-51055-missing-semicolon-between-call-and-tuple.rs
issue-51055-missing-semicolon-between-call-and-tuple.stderr
issue-52820.rs Account for short-hand init structs when suggesting conversion 2019-05-26 11:39:48 -07:00
issue-52820.stderr Account for short-hand init structs when suggesting conversion 2019-05-26 11:39:48 -07:00
issue-57672.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
issue-59819.fixed
issue-59819.rs
issue-59819.stderr
issue-61226.rs review comment: remove unecessary error in test 2019-08-13 09:01:56 -07:00
issue-61226.stderr review comment: remove unecessary error in test 2019-08-13 09:01:56 -07:00
issue-61963.rs lowering: Omit bare trait lint on macro call sites 2019-07-26 17:31:39 +01:00
issue-61963.stderr lowering: Omit bare trait lint on macro call sites 2019-07-26 17:31:39 +01:00
issue-62843.rs Add note suggesting to borrow a String argument to find 2019-07-25 10:11:03 -07:00
issue-62843.stderr When possible point at argument causing item obligation failure 2019-09-19 12:10:23 -07:00
match-ergonomics.rs
match-ergonomics.stderr
mismatched-types-numeric-from.rs Do not suggest .try_into() on i32::from(x) 2019-08-22 13:37:35 -07:00
mismatched-types-numeric-from.stderr Do not suggest .try_into() on i32::from(x) 2019-08-22 13:37:35 -07:00
mut-ref-reassignment.rs Add regression test for negative case 2019-05-23 10:32:01 -07:00
mut-ref-reassignment.stderr Add regression test for negative case 2019-05-23 10:32:01 -07:00
no-extern-crate-in-type.rs
no-extern-crate-in-type.stderr
opaque-type-error.rs review comments: reword and add test 2019-08-21 16:49:26 -07:00
opaque-type-error.stderr Opaque type locations in error message for clarity. 2019-09-05 06:32:53 +01:00
option-content-move.fixed Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
option-content-move.rs Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
option-content-move.stderr Update tests for changes to cannot move errors 2019-06-03 14:55:29 +01:00
path-by-value.rs
path-by-value.stderr
path-display.rs
path-display.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
return-without-lifetime.rs
return-without-lifetime.stderr
suggest-box.fixed Suggest Box::new when appropriate 2019-08-12 20:24:30 -07:00
suggest-box.rs Suggest Box::new when appropriate 2019-08-12 20:24:30 -07:00
suggest-box.stderr review comments 2019-08-13 11:24:08 -07:00
suggest-closure-return-type-1.rs Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
suggest-closure-return-type-1.stderr Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
suggest-closure-return-type-2.rs Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
suggest-closure-return-type-2.stderr Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
suggest-closure-return-type-3.rs Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
suggest-closure-return-type-3.stderr Suggest giving return type to closures on E0282 2019-08-13 16:41:43 -07:00
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 Give method not found a primary span label 2019-09-08 18:27:02 -07:00
suggest-move-lifetimes.rs
suggest-move-lifetimes.stderr
suggest-move-types.rs
suggest-move-types.stderr
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
suggest-remove-refs-2.rs
suggest-remove-refs-2.stderr
suggest-remove-refs-3.rs
suggest-remove-refs-3.stderr
suggest-std-when-using-type.rs
suggest-std-when-using-type.stderr
suggest-variants.rs
suggest-variants.stderr Tweak span for variant not found error 2019-07-19 19:25:03 -07: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 Handle more cases of typos misinterpreted as type ascription 2019-07-19 10:56:37 -07:00
type-ascription-instead-of-path.rs diagnostics: Describe crate root modules in DefKind::Mod as "crate" 2019-08-10 23:17:20 +03:00
type-ascription-instead-of-path.stderr diagnostics: Describe crate root modules in DefKind::Mod as "crate" 2019-08-10 23:17:20 +03:00
type-ascription-instead-of-variant.rs
type-ascription-instead-of-variant.stderr Handle more cases of typos misinterpreted as type ascription 2019-07-19 10:56:37 -07:00
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
unused-closure-argument.rs
unused-closure-argument.stderr
use-type-argument-instead-of-assoc-type.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
use-type-argument-instead-of-assoc-type.stderr Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
vec-macro-in-pattern.fixed review comments: use structured suggestion 2019-08-09 09:40:26 -07:00
vec-macro-in-pattern.rs review comments: use structured suggestion 2019-08-09 09:40:26 -07:00
vec-macro-in-pattern.stderr review comments: use structured suggestion 2019-08-09 09:40:26 -07:00