rust/tests/ui/generics
Oli Scherer c51f05be30 Report infer ty errors during hir ty lowering
This centralizes the placeholder type error reporting in one location, but it also exposes the granularity at which we convert things from hir to ty more. E.g. previously infer types in where bounds were errored together with the function signature, but now they are independent.
2025-06-27 07:51:38 +00:00
..
auxiliary Encode lifetime param spans too 2023-04-22 01:13:54 +00:00
autobind.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-mid-path-type-params.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
bad-mid-path-type-params.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
default-type-params-well-formedness.rs cleaned up some tests 2025-06-23 18:53:56 +05:00
empty-generic-brackets-equiv.rs cleaned up some tests 2025-06-11 17:49:03 +05:00
empty-generic-brackets-equiv.stderr cleaned up some tests 2025-06-11 17:49:03 +05:00
export-name-on-generics.fixed Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
export-name-on-generics.rs Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
export-name-on-generics.stderr Warn when #[export_name] is used with generic functions 2025-05-10 18:48:32 +08:00
foreign-generic-mismatch.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
foreign-generic-mismatch.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
generic-alias-unique.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-arg-mismatch-recover.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-arg-mismatch-recover.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
generic-default-type-params-cross-crate.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-default-type-params.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-derived-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-exterior-unique.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-extern-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic-extern-lifetime.stderr Make missing lifetime suggestion verbose 2025-06-24 18:59:42 +00:00
generic-extern-mangle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-extern.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
generic-extern.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
generic-fn-infer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-fn-twice.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-fn-unique.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-function-item-where-type.rs Automatically taint when reporting errors from ItemCtxt 2024-07-09 07:44:17 +00:00
generic-function-item-where-type.stderr Automatically taint when reporting errors from ItemCtxt 2024-07-09 07:44:17 +00:00
generic-higher-ranked-lifetime-issue-122714.rs Fix incorrect suggestion for undeclared hrtb lifetimes in where clauses. 2024-05-20 20:28:57 +08:00
generic-higher-ranked-lifetime-issue-122714.stderr Fix incorrect suggestion for undeclared hrtb lifetimes in where clauses. 2024-05-20 20:28:57 +08:00
generic-impl-less-params-with-defaults.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-impl-less-params-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-impl-more-params-with-defaults.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-impl-more-params-with-defaults.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
generic-ivec-leak.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-lifetime-trait-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic-lifetime-trait-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-newtype-struct.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-no-mangle.fixed Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
generic-no-mangle.rs Replace elided_named_lifetimes with mismatched_lifetime_syntaxes 2025-06-04 10:40:04 -04:00
generic-no-mangle.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic-non-trailing-defaults.rs Disentangle ForwardGenericParamBan and ConstParamTy ribs 2025-03-12 16:56:26 +00:00
generic-non-trailing-defaults.stderr Disentangle ForwardGenericParamBan and ConstParamTy ribs 2025-03-12 16:56:26 +00:00
generic-object.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-param-attrs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-recursive-tag.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-static-methods.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-tag-corruption.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-tag-local.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-tag-match.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00
generic-tag-values.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-tag.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-temporary.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-tup.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-type-less-params-with-defaults.rs Test generic arg suggestion inside nested item 2024-03-17 23:40:12 +00:00
generic-type-less-params-with-defaults.stderr Test generic arg suggestion inside nested item 2024-03-17 23:40:12 +00:00
generic-type-more-params-with-defaults.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
generic-type-more-params-with-defaults.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
generic-type-params-forward-mention.rs Disentangle ForwardGenericParamBan and ConstParamTy ribs 2025-03-12 16:56:26 +00:00
generic-type-params-forward-mention.stderr Disentangle ForwardGenericParamBan and ConstParamTy ribs 2025-03-12 16:56:26 +00:00
generic-type-params-name-repr.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
generic-type-params-name-repr.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
generic-type-synonym.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
generic-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-unique.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generics-on-self-mod-segment.rs Store resolution for self and crate root module segments 2024-11-20 18:57:02 +00:00
generics-on-self-mod-segment.stderr Store resolution for self and crate root module segments 2024-11-20 18:57:02 +00:00
impl-block-params-declared-in-wrong-spot-issue-113073.rs Update Tests 2024-06-05 20:08:00 -04:00
impl-block-params-declared-in-wrong-spot-issue-113073.stderr Make missing lifetime suggestion verbose 2025-06-24 18:59:42 +00:00
issue-333.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-1112.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-2936.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-32498.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-59508-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-59508-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-59508.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-59508.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-59508.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-61631-default-type-param-can-reference-self-in-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61631-default-type-param-can-reference-self-in-trait.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
issue-61631-default-type-param-cannot-reference-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61631-default-type-param-cannot-reference-self.stderr Disentangle ForwardGenericParamBan and ConstParamTy ribs 2025-03-12 16:56:26 +00:00
issue-65285-incorrect-explicit-lifetime-name-needed.rs Introduce ReError 2023-02-09 10:26:49 +00:00
issue-65285-incorrect-explicit-lifetime-name-needed.stderr Use structured suggestion when telling user about for<'a> 2023-06-30 00:34:14 +00:00
issue-79605.rs add UI test for #79605 2023-04-15 17:17:46 +05:30
issue-79605.stderr Bless and add tests 2025-01-23 06:01:36 +00:00
issue-80512-param-reordering-with-defaults.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-80512-param-reordering-with-defaults.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-83556.rs diagnostics: simpler 83556 handling by bailing out 2023-09-22 22:41:01 -07:00
issue-83556.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-94432-garbage-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-94923.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95208-ignore-qself.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95208-ignore-qself.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95208-ignore-qself.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-95208.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95208.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95208.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-98432.rs Generalize E0401 2023-09-10 23:06:14 +02:00
issue-98432.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-106694.rs make error emitted on impl &Trait nicer 2023-01-15 12:23:46 +13:00
issue-106694.stderr make error emitted on impl &Trait nicer 2023-01-15 12:23:46 +13:00
lifetime-before-type-params.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lifetime-before-type-params.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mid-path-type-params.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
overlapping-errors-span-issue-123861.rs Use a more precise span in placeholder_type_error_diag 2024-12-13 13:07:07 +01:00
overlapping-errors-span-issue-123861.stderr Report infer ty errors during hir ty lowering 2025-06-27 07:51:38 +00:00
param-in-ct-in-ty-param-default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
param-in-ct-in-ty-param-default.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
post_monomorphization_error_backtrace.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
post_monomorphization_error_backtrace.stderr Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
single-colon-path-not-const-generics.rs Rip it out 2023-05-01 16:15:13 +08:00
single-colon-path-not-const-generics.stderr Revert overzealous parse recovery for single colons 2025-04-24 02:57:10 +02:00
slightly-nice-generic-literal-messages.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
slightly-nice-generic-literal-messages.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
type-params-in-for-each.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
unclosed-generics-in-impl-def.rs Tweak unclosed generics errors 2023-12-01 20:01:39 +00:00
unclosed-generics-in-impl-def.stderr Tweak unclosed generics errors 2023-12-01 20:01:39 +00:00
wrong-number-of-args.rs Change suggestion message wording 2024-07-22 22:04:49 +00:00
wrong-number-of-args.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00