rust/tests/ui/typeck
Guillaume Gomez 707e956946
Rollup merge of #145361 - xizheyin:145294, r=compiler-errors
Suppress wrapper suggestion when expected and actual ty are the same adt and the variant is unresolved

Fixes rust-lang/rust#145294

I initially tried the desired suggestion in this issue, but since that suggestion occurs in the expected type, it is inappropriate to suggest for expected expressions (see other suggest methods in the same file). I believe that suppressing the incorrect suggestion is the more appropriate choice here.

I opted for a slightly more general approach: when the expected type and actual type are the same ADT (e.g., both are Result in this example), we assume that code tend to compare the internal generic parameters(i.e. `Option<&str>` vs `Option<String>`, instead of `E = _` vs `Result<Option<String>>>`). When `E` is an unresolved infer type in the expected type (`_` in this example), we should not wrapp the actual type.

Two commits show the difference.

r? compiler
2025-08-14 11:39:40 +02:00
..
auxiliary add failing test, bless incorrect output 2025-06-30 18:03:39 -04:00
issue-87181 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-114918 Manually walk into WF obligations in BestObligation proof tree visitor 2025-01-31 18:21:58 +00:00
suggestions Suppress wrapper suggestion when expected and actual ty are the same adt and the variant is unresolved 2025-08-13 23:23:18 +08:00
apit-with-error-type-in-sig.rs Don't call a type uncallable if its signature has errors in it 2023-07-22 15:27:21 +00:00
apit-with-error-type-in-sig.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
assign-non-lval-derefmut.fixed add nonpoison::mutex implementation 2025-07-29 10:32:15 +02:00
assign-non-lval-derefmut.rs add nonpoison::mutex implementation 2025-07-29 10:32:15 +02:00
assign-non-lval-derefmut.stderr add nonpoison::mutex implementation 2025-07-29 10:32:15 +02:00
assign-non-lval-mut-ref.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assign-non-lval-mut-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assign-non-lval-mut-ref.stderr
assign-non-lval-needs-deref.rs
assign-non-lval-needs-deref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
attempted-access-non-fatal.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
attempted-access-non-fatal.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
autoderef-with-param-env-error.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
autoderef-with-param-env-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bad-index-due-to-nested.current.stderr Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
bad-index-due-to-nested.next.stderr Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
bad-index-due-to-nested.rs Don't pick T: FnPtr nested goals 2025-01-22 06:55:38 +00:00
bad-index-modulo-higher-ranked-regions.rs Don't ICE when ambiguity is found when selecting Index implementation in typeck 2023-11-20 23:37:04 +00:00
bad-index-modulo-higher-ranked-regions.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bad-recursive-type-sig-infer.rs Don't infer fn return type to return itself 2023-04-22 19:30:47 +00:00
bad-recursive-type-sig-infer.stderr Don't infer fn return type to return itself 2023-04-22 19:30:47 +00:00
bad-type-in-vec-contains.rs Fix another ICE in point_at_expr_source_of_inferred_type 2023-03-02 18:27:06 +00:00
bad-type-in-vec-contains.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bad-type-in-vec-push.rs Hack to suppress bad labels in type mismatch inference deduction code 2023-01-23 17:02:50 +00:00
bad-type-in-vec-push.stderr Make note_source_of_type_mismatch_constraint simpler 2023-04-12 23:05:55 +00:00
call-block.rs
call-block.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
check-args-on-fn-err-2.rs
check-args-on-fn-err-2.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
check-args-on-fn-err.rs
check-args-on-fn-err.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-ty-mismatch-issue-128561.rs Add ignore value suggestion in closure body 2025-02-22 11:45:07 +08:00
closure-ty-mismatch-issue-128561.stderr Update compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs 2025-02-22 11:45:09 +08:00
coercion-check-for-addition-issue-40610.rs Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
coercion-check-for-addition-issue-40610.stderr Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
coercion-check-for-indexing-expression-issue-40861.rs Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
coercion-check-for-indexing-expression-issue-40861.stderr Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
consider-borrowing-141810-1.rs Failing tests for "consider borrowing" 2025-05-31 18:32:50 +02:00
consider-borrowing-141810-1.stderr Simplify IfCause 2025-06-26 03:43:01 +00:00
consider-borrowing-141810-2.rs Failing tests for "consider borrowing" 2025-05-31 18:32:50 +02:00
consider-borrowing-141810-2.stderr Simplify IfCause 2025-06-26 03:43:01 +00:00
consider-borrowing-141810-3.rs Failing tests for "consider borrowing" 2025-05-31 18:32:50 +02:00
consider-borrowing-141810-3.stderr Simplify IfCause 2025-06-26 03:43:01 +00:00
consider-borrowing-141810-4.rs Failing tests for "consider borrowing" 2025-05-31 18:32:50 +02:00
consider-borrowing-141810-4.stderr Failing tests for "consider borrowing" 2025-05-31 18:32:50 +02:00
const-in-fn-call-generics.rs Rewrite get_fn_id_for_return_block 2024-08-16 20:53:13 +01:00
const-in-fn-call-generics.stderr Rewrite get_fn_id_for_return_block 2024-08-16 20:53:13 +01:00
conversion-methods.rs
conversion-methods.stderr Make Diag::multipart_suggestions always verbose 2025-07-10 17:23:29 +00:00
cyclic_type_ice.rs Continue reporting remaining errors instead of silently dropping them 2024-02-13 14:56:20 +00:00
cyclic_type_ice.stderr Handle _ properly in a couple of places. 2025-03-14 09:45:38 +11:00
deref-multi.rs
deref-multi.stderr add nonpoison::mutex implementation 2025-07-29 10:32:15 +02:00
derive-sugg-arg-arity.rs Don't use can_eq in derive suggestion for missing method 2023-05-12 20:34:51 +00:00
derive-sugg-arg-arity.stderr Use single label for method not found due to unmet bound 2024-01-26 20:47:19 +00:00
do-not-suggest-adding-missing-zero-to-floating-point-number.rs
do-not-suggest-adding-missing-zero-to-floating-point-number.stderr
do-not-suggest-placeholder-to-const-static-without-type.rs
do-not-suggest-placeholder-to-const-static-without-type.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
dont-record-adjustments-when-pointing-at-arg.rs Don't record adjustments twice in note_source_of_type_mismatch_constraint 2023-06-12 00:35:30 +00:00
dont-record-adjustments-when-pointing-at-arg.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dont-suggest-private-dependencies.rs avoid suggesting traits from private dependencies 2025-07-02 22:04:51 -04:00
dont-suggest-private-dependencies.stderr avoid suggesting traits from private dependencies 2025-07-02 22:04:51 -04:00
escaping_bound_vars.rs Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
escaping_bound_vars.stderr Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
explain_clone_autoref.rs Added recursive checking back up to see if a Clone suggestion would be helpful. 2023-07-25 10:09:26 +01:00
explain_clone_autoref.stderr Added recursive checking back up to see if a Clone suggestion would be helpful. 2023-07-25 10:09:26 +01:00
foreign_struct_trait_unimplemented.rs Don't call extern_crate when local crate name is the same as a dependency and we have a trait error 2024-09-12 09:07:44 -04:00
foreign_struct_trait_unimplemented.stderr fix test 2024-11-07 20:56:36 +00:00
function-in-pattern-error-12863.rs comments 2025-07-31 21:25:49 +05:00
function-in-pattern-error-12863.stderr comments 2025-07-31 21:25:49 +05:00
gather-locals-twice.rs Do not ICE when reassigning in GatherLocalsVisitor on the bad path 2025-05-09 14:42:19 +00:00
gather-locals-twice.stderr Do not ICE when reassigning in GatherLocalsVisitor on the bad path 2025-05-09 14:42:19 +00:00
ice-self-mismatch-const-generics.rs Pass the correct DefId when suggesting writing the aliased Self type out 2024-03-14 19:39:15 +00:00
ice-self-mismatch-const-generics.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
ice-unexpected-region-123863.rs Fix ICE on invalid const param types 2024-04-27 09:36:38 +05:30
ice-unexpected-region-123863.stderr Preserve generic args in suggestions for ambiguous associated items 2025-05-06 17:04:03 +02:00
ice-with-expr-not-struct-127332.rs Move a span_bug under a condition that cx is tainted 2024-07-07 15:44:55 +05:30
ice-with-expr-not-struct-127332.stderr Move a span_bug under a condition that cx is tainted 2024-07-07 15:44:55 +05:30
incorrect-self-type-in-trait-impl-48276.rs Rehome tests/ui/issues/ tests [2/?] 2025-08-02 15:29:16 -04:00
incorrect-self-type-in-trait-impl-48276.stderr Rehome tests/ui/issues/ tests [2/?] 2025-08-02 15:29:16 -04:00
inference-method-chain-diverging-fallback.rs cleaned up some tests 2025-06-23 18:53:56 +05:00
invalid-stashed-level-issue-121812.rs Handle stashing of delayed bugs. 2024-03-01 10:18:54 +11:00
invalid-stashed-level-issue-121812.stderr Handle stashing of delayed bugs. 2024-03-01 10:18:54 +11:00
invalid-sugg-for-derive-macro-issue-136343.rs Fix invalid suggestion from type error for derive macro 2025-02-23 14:44:27 +08:00
invalid-sugg-for-derive-macro-issue-136343.stderr Fix invalid suggestion from type error for derive macro 2025-02-23 14:44:27 +08:00
isize-usize-mismatch-error.rs comments 2025-07-31 21:25:49 +05:00
isize-usize-mismatch-error.stderr comments 2025-07-31 21:25:49 +05:00
issue-1871.rs Move tests 2023-05-24 19:35:59 -03:00
issue-1871.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-2063-resource.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-2063.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-7813.rs Move tests 2023-02-16 11:42:35 -03:00
issue-7813.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-10401.rs
issue-10401.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-10969.rs
issue-10969.stderr
issue-13853-2.rs
issue-13853-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-13853-5.rs Unconditionally run check_item_type on all items 2025-06-30 08:06:08 +00:00
issue-13853-5.stderr Unconditionally run check_item_type on all items 2025-06-30 08:06:08 +00:00
issue-13853.rs
issue-13853.stderr Note that type param is chosen by caller when suggesting return impl Trait 2024-03-16 23:20:42 +00:00
issue-16338.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
issue-16338.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
issue-18937-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-18937.rs
issue-18937.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-22375.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29124.rs
issue-29124.stderr
issue-29181.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29181.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
issue-31173.rs
issue-31173.stderr Avoid extra path trimming in method not found error 2025-05-24 23:31:07 +02:00
issue-33575.rs
issue-33575.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-36708.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36708.stderr Differentiate between methods and associated functions 2024-08-10 00:54:16 +00:00
issue-43189.rs Enable more tests on Windows 2025-02-03 10:39:32 -05:00
issue-43189.stderr Enable more tests on Windows 2025-02-03 10:39:32 -05:00
issue-46112.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-46112.stderr Enable more tests on Windows 2025-02-03 10:39:32 -05:00
issue-50687-ice-on-borrow.rs
issue-50687-ice-on-borrow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-52082-type-param-shadows-existing-type.rs
issue-52082-type-param-shadows-existing-type.stderr recover primary span label 2023-11-16 17:00:23 +00:00
issue-53712.rs Tweak slice and as_deref suggestion span 2024-07-04 05:50:21 +00:00
issue-53712.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-55810-must-typeck-match-pats-before-guards.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-57404.rs
issue-57404.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-57673-ice-on-deref-of-boxed-trait.rs
issue-57673-ice-on-deref-of-boxed-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-61711-once-caused-rustc-inf-loop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-65611.rs Suppress missing field error when autoderef bottoms out in infer 2025-04-05 20:37:56 +00:00
issue-65611.stderr Suppress missing field error when autoderef bottoms out in infer 2025-04-05 20:37:56 +00:00
issue-67971.rs
issue-67971.stderr recover primary span label 2023-11-16 17:00:23 +00:00
issue-68590-reborrow-through-derefmut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69378-ice-on-invalid-type-node-after-recovery.rs
issue-69378-ice-on-invalid-type-node-after-recovery.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-72225-call-fnmut-through-derefmut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73592-borrow_mut-through-deref.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73592-borrow_mut-through-deref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73592-borrow_mut-through-deref.stderr
issue-74086.rs Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-74086.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-74933.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-75883.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-75883.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-75889.rs
issue-75889.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-79040.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-79040.stderr Remove diagnostic_only_typeck and fix placeholder suggestion for const/static 2025-01-02 23:39:16 +00:00
issue-80207-unsized-return.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-80779.rs
issue-80779.stderr
issue-81293.rs
issue-81293.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
issue-81885.rs Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-81885.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-81943.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-81943.stderr Don't suggest adding return type for closures with default return type 2024-08-28 12:54:39 +08:00
issue-82772.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-82772.stderr Emit a single privacy error for multiple fields on the same struct expression 2025-01-18 20:33:15 +00:00
issue-83621-placeholder-static-in-extern.rs
issue-83621-placeholder-static-in-extern.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-83693.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-83693.stderr Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
issue-84160.rs
issue-84160.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-84768.rs Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
issue-84768.stderr Use final path segment for diagnostic 2025-03-05 23:06:54 +00:00
issue-84831.rs
issue-84831.stderr
issue-86721-return-expr-ice.rev1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-86721-return-expr-ice.rev2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-86721-return-expr-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87771-ice-assign-assign-to-bool.rs
issue-87771-ice-assign-assign-to-bool.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87872-missing-inaccessible-field-literal.rs
issue-87872-missing-inaccessible-field-literal.stderr Tweak message on ADT with private fields building 2023-11-29 18:11:57 +00:00
issue-87872-missing-inaccessible-field-pattern.rs
issue-87872-missing-inaccessible-field-pattern.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
issue-88609.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88643.rs Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-88643.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
issue-88803-call-expr-method.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88803-call-expr-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88803-call-expr-method.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-88844.rs
issue-88844.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-89044-wrapped-expr-method.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89044-wrapped-expr-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89044-wrapped-expr-method.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-89275.rs compiletest: Improve diagnostics for line annotation mismatches 2025-06-23 21:30:56 +03:00
issue-89275.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-89806.rs
issue-89806.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-89856.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89856.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89856.stderr More robust as_ref/as_deref suggestions 2023-06-08 16:30:05 +00:00
issue-89935.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-90027-async-fn-return-suggestion.rs compiletest: Trim the value of dont-require-annotations 2025-04-10 23:48:57 +03:00
issue-90027-async-fn-return-suggestion.stderr compiletest: Make SUGGESTION annotations viral 2025-04-10 23:48:57 +03:00
issue-90101.rs
issue-90101.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-90164.rs
issue-90164.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
issue-90319.rs
issue-90319.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90483-inaccessible-field-adjustment.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-90483-inaccessible-field-adjustment.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90804-incorrect-reference-suggestion.rs
issue-90804-incorrect-reference-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91210-ptr-method.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91210-ptr-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91210-ptr-method.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91267.rs Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
issue-91267.stderr Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
issue-91328.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91328.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91328.stderr Tweak slice and as_deref suggestion span 2024-07-04 05:50:21 +00:00
issue-91334.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
issue-91334.stderr Deduplicate unmatched_delims in rustc_parse to reduce confusion 2025-07-18 20:34:58 +08:00
issue-91450-inner-ty-error.rs
issue-91450-inner-ty-error.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-91633.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-92481.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-92481.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93486.rs
issue-93486.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-96530.rs
issue-96530.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-96738.rs
issue-96738.stderr recover primary span label 2023-11-16 17:00:23 +00:00
issue-98260.rs
issue-98260.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-98982.rs Remove note about iteration count in coerce 2024-04-30 12:46:59 +05:30
issue-98982.stderr Remove note about iteration count in coerce 2024-04-30 12:46:59 +05:30
issue-100164.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-100164.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-100164.stderr
issue-100246.rs compiletest: Improve diagnostics for line annotation mismatches 2025-06-23 21:30:56 +03:00
issue-100246.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-100285.rs Remove note about iteration count in coerce 2024-04-30 12:46:59 +05:30
issue-100285.stderr Filter empty lines, comments and delimiters from previous to last multiline span rendering 2024-12-12 23:36:27 +00:00
issue-103899.current.stderr Update tests for dropck normalization errors 2025-02-17 11:33:07 +00:00
issue-103899.next.stderr Update tests for dropck normalization errors 2025-02-17 11:33:07 +00:00
issue-103899.rs Update tests for dropck normalization errors 2025-02-17 11:33:07 +00:00
issue-104510-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-104510-ice.stderr don't skip coercions for types with errors 2024-02-10 23:13:47 +01:00
issue-104513-ice.rs Split note, fix const/static impl trait error 2024-01-07 18:00:03 +00:00
issue-104513-ice.stderr (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
issue-104582.rs
issue-104582.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-105946.rs Check Sizedness of return type in WF 2025-02-03 19:00:22 +00:00
issue-105946.stderr Check Sizedness of return type in WF 2025-02-03 19:00:22 +00:00
issue-106929.rs Don't typecheck suggested method call 2023-05-30 17:57:37 +08:00
issue-106929.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-107087.rs Use proper InferCtxt when probing for associated types in astconv 2023-01-23 16:53:23 +00:00
issue-107087.stderr Preserve generic args in suggestions for ambiguous associated items 2025-05-06 17:04:03 +02:00
issue-107775.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-107775.stderr Rework "long type names" printing logic 2025-01-31 20:39:01 +00:00
issue-110017-format-into-help-deletes-macro.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-110017-format-into-help-deletes-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-110017-format-into-help-deletes-macro.stderr Fix suggestions span for when expr is from macro expansions 2023-06-28 17:54:20 +08:00
issue-110052.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
issue-110052.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
issue-112007-leaked-writeln-macro-internals.rs test: avoid running rustfix on leaked writeln macro internals test 2024-04-10 19:37:48 +00:00
issue-112007-leaked-writeln-macro-internals.stderr test: avoid running rustfix on leaked writeln macro internals test 2024-04-10 19:37:48 +00:00
issue-112252-ptr-arithmetics-help.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-112252-ptr-arithmetics-help.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-112252-ptr-arithmetics-help.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-112385-while-assign-lhs-place-expr-ice.rs Fix ICE for while loop with assignment condition with LHS place expr 2023-06-08 02:38:12 +08:00
issue-112385-while-assign-lhs-place-expr-ice.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-114423-ice-regression-in-suggestion.rs Rename issue #114423 test files to include context 2023-08-05 09:04:47 +08:00
issue-114423-ice-regression-in-suggestion.stderr Rename issue #114423 test files to include context 2023-08-05 09:04:47 +08:00
issue-114529-illegal-break-with-value.rs Typeck break expr even if break is illegal 2023-11-20 15:14:08 +05:30
issue-114529-illegal-break-with-value.stderr Loop check anon consts on their own 2025-06-10 08:41:23 +00:00
issue-116473-ice-wrong-span-variant-args.rs macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
issue-116473-ice-wrong-span-variant-args.stderr macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
issue-116864.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-120856.rs Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
issue-120856.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
method-chain-gats.rs Properly deal with GATs when looking for method chains to point at 2024-03-03 00:42:03 +01:00
method-chain-gats.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
minus-string.rs Cleaned up 5 tests in tests/ui 2025-04-21 16:16:38 +09:00
minus-string.stderr Cleaned up 5 tests in tests/ui 2025-04-21 16:16:38 +09:00
mismatched-map-under-self.rs Adjust inner span of implicit self ref argument 2023-06-28 17:51:01 +00:00
mismatched-map-under-self.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
mismatched-types-ref-binding.rs cleaned up some tests 2025-07-13 00:03:31 +05:00
mismatched-types-ref-binding.stderr cleaned up some tests 2025-07-13 00:03:31 +05:00
missing-private-fields-in-struct-literal.rs
missing-private-fields-in-struct-literal.stderr Tweak message on ADT with private fields building 2023-11-29 18:11:57 +00:00
nested-generic-traits-performance.rs cleaned up some tests 2025-07-05 00:45:24 +05:00
no-type-for-node-ice.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
no-type-for-node-ice.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nonexistent-field-not-ambiguous.rs
nonexistent-field-not-ambiguous.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
output-type-mismatch.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
output-type-mismatch.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
parenthesized-type-parameters-error-32995.rs Rehome tests/ui/issues/ tests [2/?] 2025-08-02 15:29:16 -04:00
parenthesized-type-parameters-error-32995.stderr Rehome tests/ui/issues/ tests [2/?] 2025-08-02 15:29:16 -04:00
path-to-method-sugg-unresolved-expr.cargo-invoked.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
path-to-method-sugg-unresolved-expr.only-rustc.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
path-to-method-sugg-unresolved-expr.rs Fix two malformed error annotations in a UI test 2025-02-01 22:26:07 +01:00
pin-unsound-issue-85099-derefmut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
point-at-type-param-in-path-expr.rs
point-at-type-param-in-path-expr.stderr Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
point-at-type-parameter-definition.rs
point-at-type-parameter-definition.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
pointer-arith-assign.fixed Add diagnostics and suggestions for raw pointer arithmetic assignments 2025-04-21 22:14:44 +05:00
pointer-arith-assign.rs Add diagnostics and suggestions for raw pointer arithmetic assignments 2025-04-21 22:14:44 +05:00
pointer-arith-assign.stderr Add diagnostics and suggestions for raw pointer arithmetic assignments 2025-04-21 22:14:44 +05:00
prim-with-args.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
prim-with-args.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
prim-with-args.stderr
project-cache-issue-37154.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr-null-mutability-suggestions.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr-null-mutability-suggestions.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr-null-mutability-suggestions.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
question-mark-operator-suggestion-span.rs test: check that ? suggestion has local span 2024-04-10 19:37:48 +00:00
question-mark-operator-suggestion-span.stderr test: check that ? suggestion has local span 2024-04-10 19:37:48 +00:00
quiet-type-err-let-binding.rs
quiet-type-err-let-binding.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
remove-extra-argument.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
remove-extra-argument.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
remove-extra-argument.stderr When displaying a parameter mismatch error, only highlight the mismatched parameters when showing the definition. 2025-02-05 10:36:32 -05:00
remove-semi-but-confused-char.rs Don't use bytepos offsets when computing semicolon span for removal 2024-04-09 14:06:08 -04:00
remove-semi-but-confused-char.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
repeat-expr-checks-wf.rs check array type of repeat exprs is wf 2023-05-04 11:22:40 +01:00
repeat-expr-checks-wf.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-dyn-type-mismatch-2.rs only suppress coercion error if type is definitely unsized 2023-06-02 16:38:08 +00:00
return-dyn-type-mismatch-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-dyn-type-mismatch.rs only suppress coercion error if type is definitely unsized 2023-06-02 16:38:08 +00:00
return-dyn-type-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return_type_containing_closure.rs Rework "long type names" printing logic 2025-01-31 20:39:01 +00:00
return_type_containing_closure.stderr Rework "long type names" printing logic 2025-01-31 20:39:01 +00:00
rhs-ty-hint-134162.e2018.stderr Add a regression test for #134162 2024-12-14 17:07:20 +08:00
rhs-ty-hint-134162.e2021.stderr Add a regression test for #134162 2024-12-14 17:07:20 +08:00
rhs-ty-hint-134162.e2024.stderr Add a regression test for #134162 2024-12-14 17:07:20 +08:00
rhs-ty-hint-134162.rs Add a regression test for #134162 2024-12-14 17:07:20 +08:00
slow-lhs-suggestion.rs
slow-lhs-suggestion.stderr
span-bug-issue-121410.rs Revert some span_bugs to span_delayed_bug. 2024-02-23 08:35:18 +11:00
span-bug-issue-121410.stderr Revert some span_bugs to span_delayed_bug. 2024-02-23 08:35:18 +11:00
str-no-field-desc-14721.rs comments 2025-08-05 19:34:46 +05:00
str-no-field-desc-14721.stderr comments 2025-08-05 19:34:46 +05:00
struct-enum-wrong-args.rs
struct-enum-wrong-args.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
struct-index-err-ice-issue-126744.rs report pat no field error no recoverd struct variant 2024-07-11 00:18:47 +08:00
struct-index-err-ice-issue-126744.stderr report pat no field error no recoverd struct variant 2024-07-11 00:18:47 +08:00
suggest-trait-reexported-as-not-doc-visible.rs Make the compiler suggest actual paths instead of visible paths if the visible paths are through any doc hidden path. 2025-04-04 20:50:16 +09:00
suggest-trait-reexported-as-not-doc-visible.stderr Make the compiler suggest actual paths instead of visible paths if the visible paths are through any doc hidden path. 2025-04-04 20:50:16 +09:00
suppressed-error.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
suppressed-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
tag-that-dare-not-speak-its-name.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
tag-that-dare-not-speak-its-name.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
tail-return-type-mismatch.rs cleaned up some tests 2025-07-13 00:03:31 +05:00
tail-return-type-mismatch.stderr cleaned up some tests 2025-07-13 00:03:31 +05:00
terr-in-field.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
terr-in-field.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
terr-sorts.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
terr-sorts.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
type-placeholder-fn-in-const.rs Report infer ty errors during hir ty lowering 2025-06-27 07:51:38 +00:00
type-placeholder-fn-in-const.stderr Report infer ty errors during hir ty lowering 2025-06-27 07:51:38 +00:00
typeck-builtin-bound-type-parameters.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
typeck-builtin-bound-type-parameters.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
typeck-cast-pointer-to-float.rs
typeck-cast-pointer-to-float.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
typeck-closure-to-unsafe-fn-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typeck-default-trait-impl-assoc-type.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typeck-default-trait-impl-assoc-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typeck-default-trait-impl-assoc-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
typeck-default-trait-impl-cross-crate-coherence.rs Remove suspicious auto trait lint 2024-02-19 17:41:48 -03:00
typeck-default-trait-impl-cross-crate-coherence.stderr Make new information notes instead of labels 2024-09-26 17:17:11 +00:00
typeck-default-trait-impl-negation-send.rs
typeck-default-trait-impl-negation-send.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
typeck-default-trait-impl-negation-sync.rs
typeck-default-trait-impl-negation-sync.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
typeck-default-trait-impl-send-param.rs
typeck-default-trait-impl-send-param.stderr Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
typeck-fn-to-unsafe-fn-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typeck-unsafe-always-share.rs
typeck-unsafe-always-share.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
typeck_type_placeholder_1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
typeck_type_placeholder_item.rs Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
typeck_type_placeholder_item.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
typeck_type_placeholder_item_help.rs Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
typeck_type_placeholder_item_help.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
typeck_type_placeholder_lifetime_1.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
typeck_type_placeholder_lifetime_1.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
typeck_type_placeholder_lifetime_2.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
typeck_type_placeholder_lifetime_2.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
typeck_type_placeholder_mismatch.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
typeck_type_placeholder_mismatch.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
ufcs-type-params.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
unify-return-ty.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
unit-type-add-error-11771.rs comments 2025-07-31 21:25:49 +05:00
unit-type-add-error-11771.stderr comments 2025-07-31 21:25:49 +05:00
unsized-rvalue-issue-41139.rs Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
unsized-rvalue-issue-41139.stderr Rename and Move some UI tests to more suitable subdirs 2025-02-04 17:02:37 +05:30
unused-type-parameter-span-30236.rs Rehome tests/ui/issues/ tests [4/?] 2025-08-10 11:54:15 -04:00
unused-type-parameter-span-30236.stderr Rehome tests/ui/issues/ tests [4/?] 2025-08-10 11:54:15 -04:00
unwrap-or-panic-input-13202.rs comments 2025-07-31 21:25:49 +05:00
while-loop-block-cond.rs
while-loop-block-cond.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
while-type-error.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
while-type-error.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
wrong-ret-type.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
wrong-ret-type.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00