rust/tests/ui/associated-consts
Jacob Pratt 82bb6d523b
Rollup merge of #145896 - Oneirical:uncountable-integer-10, r=jieyouxu
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#3 of Batch #2]

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
2025-09-13 03:26:02 -04:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ambiguous-associated-type-error-78622.rs Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
ambiguous-associated-type-error-78622.stderr Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
assoc-const-eq-ambiguity.rs Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
assoc-const-eq-ambiguity.stderr Hide errors whose suggestions would contain error constants or types 2024-12-06 10:50:20 +00:00
assoc-const-eq-bound-var-in-ty-not-wf.rs Use predicate spans instead of whole item spans 2025-06-30 08:45:43 +00:00
assoc-const-eq-bound-var-in-ty-not-wf.stderr Use predicate spans instead of whole item spans 2025-06-30 08:45:43 +00:00
assoc-const-eq-bound-var-in-ty.rs Reject escaping bound vars in the type of assoc const bindings 2024-03-13 14:29:27 +01:00
assoc-const-eq-const_evaluatable_unchecked.rs Move an ACE test out of the GCI directory 2025-06-26 15:42:57 +02:00
assoc-const-eq-esc-bound-var-in-ty.rs Reject escaping bound vars in the type of assoc const bindings 2024-03-13 14:29:27 +01:00
assoc-const-eq-esc-bound-var-in-ty.stderr Reject escaping bound vars in the type of assoc const bindings 2024-03-13 14:29:27 +01:00
assoc-const-eq-missing.rs Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
assoc-const-eq-missing.stderr Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
assoc-const-eq-param-in-ty.rs Bless test fallout (duplicate diagnostics) 2024-03-20 13:00:34 -04:00
assoc-const-eq-param-in-ty.stderr Bless test fallout (duplicate diagnostics) 2024-03-20 13:00:34 -04:00
assoc-const-eq-supertraits.rs Propagate the resolved type of assoc const bindings via query feeding 2024-02-18 10:29:22 +01:00
assoc-const-eq-ty-alias-noninteracting.rs Propagate the resolved type of assoc const bindings via query feeding 2024-02-18 10:29:22 +01:00
assoc-const-ty-mismatch.rs Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
assoc-const-ty-mismatch.stderr Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
assoc-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-ambiguity-report.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-ambiguity-report.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
associated-const-array-len.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-array-len.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-const-const-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-cross-crate-const-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-cross-crate-defaults.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-cross-crate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-dead-code.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-dead-code.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-const-generic-obligations.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-generic-obligations.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-const-impl-wrong-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-impl-wrong-lifetime.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
associated-const-impl-wrong-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-impl-wrong-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-const-in-global-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-in-trait.rs fallout :skull_emoji: 2025-02-14 00:37:23 +01:00
associated-const-in-trait.stderr fallout :skull_emoji: 2025-02-14 00:37:23 +01:00
associated-const-inherent-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-marks-live-code.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-match-patterns.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-no-item.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-no-item.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-const-outer-ty-refs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-overwrite-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-private-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-private-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-const-public-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-range-match-patterns.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-resolution-order.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-self-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-trait-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-type-parameter-arrays-2.rs Bless tests due to extra error reporting due to normalizing types that are not WF 2024-11-27 03:34:58 +00:00
associated-const-type-parameter-arrays-2.stderr Bless tests due to extra error reporting due to normalizing types that are not WF 2024-11-27 03:34:58 +00:00
associated-const-type-parameter-arrays.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-const-type-parameter-arrays.stderr generic_const_exprs: suggest to add the feature, not use it 2023-11-30 20:59:51 +01:00
associated-const-type-parameter-pattern.rs review comments: reword messages and simplify logic 2024-12-04 20:49:05 +00:00
associated-const-type-parameter-pattern.stderr lower bodies' params to thir before the body's value 2025-05-21 09:17:11 -07:00
associated-const-type-parameters.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-type-parameters.stderr bless tests with new lint messages 2025-08-19 21:27:10 +02:00
associated-const-ufcs-infer-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-use-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const-use-impl-of-same-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
constant-trait-item-reference-selection-26095.rs Rehome tests/ui/issues/ tests [2/?] 2025-08-02 15:29:16 -04:00
defaults-cyclic-fail.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
defaults-cyclic-fail.stderr Enable ConstPropLint for promoteds 2024-02-17 10:44:46 +05:30
defaults-cyclic-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defaults-not-assumed-fail.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
defaults-not-assumed-fail.stderr Clarify why we are talking about a failed const eval at a random place 2025-06-02 15:37:15 +00:00
defaults-not-assumed-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
double-elided.rs Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
equality-unused-issue-126729.rs Check assoc consts and tys later like assoc fns 2025-07-10 23:39:54 +08:00
freeze.rs Expose Freeze trait again 2024-02-29 13:55:11 +00:00
infer-placeholder-in-non-suggestable-pos.rs Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
infer-placeholder-in-non-suggestable-pos.stderr Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
issue-24949-assoc-const-static-recursion-impl.rs Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
issue-24949-assoc-const-static-recursion-impl.stderr Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
issue-24949-assoc-const-static-recursion-trait-default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-24949-assoc-const-static-recursion-trait-default.stderr Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
issue-24949-assoc-const-static-recursion-trait.rs Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
issue-24949-assoc-const-static-recursion-trait.stderr Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
issue-47814.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47814.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-58022.rs Avoid a track_errors by bubbling up most errors from check_well_formed 2023-10-20 08:46:27 +00:00
issue-58022.stderr Retire hir::*ItemRef. 2025-07-13 13:50:01 +00:00
issue-63496.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-63496.stderr Retire hir::*ItemRef. 2025-07-13 13:50:01 +00:00
issue-69020-assoc-const-arith-overflow.noopt.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69020-assoc-const-arith-overflow.opt.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69020-assoc-const-arith-overflow.opt_with_overflow_checks.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69020-assoc-const-arith-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88599-ref-self.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93775.rs Make sure we don't overrun the stack in canonicalizer 2025-02-21 18:24:05 +00:00
issue-93835.rs Apply Recovery::Forbidden when reparsing pasted macro fragments. 2025-04-04 13:24:26 +11:00
issue-93835.stderr Apply Recovery::Forbidden when reparsing pasted macro fragments. 2025-04-04 13:24:26 +11:00
issue-102335-const.rs Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
issue-102335-const.stderr Fix associated item removal suggestion 2024-07-17 21:30:40 +00:00
issue-105330.rs Apply nits 2024-05-13 16:55:58 -04:00
issue-105330.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
issue-110933.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mismatched_impl_ty_1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mismatched_impl_ty_2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mismatched_impl_ty_3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
projection-unspecified-but-bounded.rs Don't create projection ty for const projection 2023-04-23 18:09:30 +00:00
projection-unspecified-but-bounded.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
shadowed-const.rs Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
shadowed-const.stderr Resolve assoc item bindings by namespace 2023-12-07 22:33:56 +01:00
trait-associated-const-usage-43483.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
traits-associated-consts-ice-56870.rs Add test batch 3 2025-09-12 14:45:12 -04:00
wrong-projection-self-ty-invalid-bivariant-arg.rs Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
wrong-projection-self-ty-invalid-bivariant-arg.stderr Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
wrong-projection-self-ty-invalid-bivariant-arg2.rs Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
wrong-projection-self-ty-invalid-bivariant-arg2.stderr fallout :skull_emoji: 2025-02-14 00:37:23 +01:00