rust/tests/ui/generic-const-items
Jubilee a4503390ba
Rollup merge of #119385 - fmease:assoc-const-eq-fixes-2, r=oli-obk,cjgillot
Fix type resolution of associated const equality bounds (take 2)

Instead of trying to re-resolve the type of assoc const bindings inside the `type_of` query impl in an incomplete manner, transfer the already (correctly) resolved type from `add_predicates_for_ast_type_binding` to `type_of`/`anon_type_of` through query feeding.

---

Together with #118668 (merged) and #121258, this supersedes #118360.
Fixes #118040.

r? ``@ghost``
2024-03-11 09:29:33 -07:00
..
associated-const-equality.rs Propagate the resolved type of assoc const bindings via query feeding 2024-02-18 10:29:22 +01:00
basic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
compare-impl-item.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
compare-impl-item.stderr Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
const-trait-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
duplicate-where-clause.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
duplicate-where-clause.stderr Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
elided-lifetimes.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
elided-lifetimes.stderr make adt_const_params feature suggestion more consistent with others and only suggest it when the type can probably work 2023-09-28 23:10:04 +00:00
evaluatable-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
evaluatable-bounds.unconstrained.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
feature-gate-generic_const_items.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
feature-gate-generic_const_items.stderr Bless tests 2024-01-13 12:46:58 -05:00
inference-failure.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
inference-failure.stderr Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
misplaced-where-clause.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
misplaced-where-clause.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
misplaced-where-clause.stderr Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
parameter-defaults.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
parameter-defaults.stderr Remove a has_errors check that does not prevent follow up error noise 2024-01-31 16:51:42 +00:00
recursive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
reference-outlives-referent.rs Don't crash when reporting nice region errors for generic const items 2023-08-12 15:34:28 +02:00
reference-outlives-referent.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trivially-unsatisfied-bounds-0.rs Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
trivially-unsatisfied-bounds-0.stderr Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
trivially-unsatisfied-bounds-1.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
trivially-unsatisfied-bounds-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsatisfied-bounds.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
unsatisfied-bounds.stderr Point out the actual mismatch error 2023-10-02 23:14:29 +00:00
unsatisfied-evaluatable-bounds.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
unsatisfied-evaluatable-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsatisfied-outlives-bounds.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
unsatisfied-outlives-bounds.stderr Add UI tests for generic const items 2023-07-28 22:23:20 +02:00