rust/tests/ui/generic-const-items
León Orell Valerian Liehr e37b744bae
Rollup merge of #136168 - fmease:gci-fix-mono, r=compiler-errors
GCI: Don't try to eval / collect mono items inside overly generic free const items

Fixes #136156. Thanks for the pointers, errs!

There's one (preexisting) thing of note (maybe?). There's a difference between `const _: () = panic!();` and `const _<'a>: () = panic!();`: The former is a pre-mono error, the latter is a post-mono error. For comparison, both `fn _f() { const { panic!() } }` and `fn _f<'a: 'a>() { const { panic!() } }` are post-mono errors.

cc `@oli-obk`
r? compiler-errors or reassign
2025-01-29 06:03:23 +01:00
..
assoc-const-AnonConst-ice-108220.rs add test for ICE with associated_const_equality #108220 2024-03-24 10:28:25 +01:00
assoc-const-missing-type.rs Remove diagnostic_only_typeck and fix placeholder suggestion for const/static 2025-01-02 23:39:16 +00:00
assoc-const-missing-type.stderr Remove diagnostic_only_typeck and fix placeholder suggestion for const/static 2025-01-02 23:39:16 +00:00
assoc-const-no-infer-ice-115806.rs add test for assertion failed: !value.has_infer() #115806 2024-04-07 01:45:31 +02:00
assoc-const-no-infer-ice-115806.stderr add test for assertion failed: !value.has_infer() #115806 2024-04-07 01:45:31 +02:00
associated-const-equality.rs
basic.rs
compare-impl-item.rs Check regions earlier when comparing impl with trait item def 2024-04-13 17:07:02 +02:00
compare-impl-item.stderr Check regions earlier when comparing impl with trait item def 2024-04-13 17:07:02 +02:00
const-trait-impl.rs Yeet effects feature 2024-11-03 18:59:31 +00:00
def-site-eval.fail.stderr GCI: Don't try to collect mono items inside overly generic free const items 2025-01-28 04:00:37 +01:00
def-site-eval.rs GCI: Don't try to collect mono items inside overly generic free const items 2025-01-28 04:00:37 +01:00
def-site-mono.rs GCI: Don't try to collect mono items inside overly generic free const items 2025-01-28 04:00:37 +01:00
duplicate-where-clause.rs
duplicate-where-clause.stderr
elided-lifetimes.rs fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
elided-lifetimes.stderr fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
evaluatable-bounds.fixed Provide structured suggestion for unconstrained generic constant 2024-03-21 00:03:59 +00:00
evaluatable-bounds.rs Provide structured suggestion for unconstrained generic constant 2024-03-21 00:03:59 +00:00
evaluatable-bounds.stderr Provide structured suggestion for unconstrained generic constant 2024-03-21 00:03:59 +00:00
feature-gate-generic_const_items.rs
feature-gate-generic_const_items.stderr
hkl_where_bounds.rs
inference-failure.rs
inference-failure.stderr Use fn ptr signature instead of {closure@..} in infer error 2024-04-10 00:41:27 +00:00
misplaced-where-clause.fixed
misplaced-where-clause.rs
misplaced-where-clause.stderr
parameter-defaults.rs
parameter-defaults.stderr Use fn ptr signature instead of {closure@..} in infer error 2024-04-10 00:41:27 +00:00
recursive.rs improve diagnostics for const eval query overflow 2025-01-06 09:43:05 +01:00
recursive.stderr improve diagnostics for const eval query overflow 2025-01-06 09:43:05 +01:00
reference-outlives-referent.rs
reference-outlives-referent.stderr
trivially-unsatisfied-bounds-0.rs
trivially-unsatisfied-bounds-0.stderr
trivially-unsatisfied-bounds-1.rs
trivially-unsatisfied-bounds-1.stderr
unsatisfied-bounds.rs
unsatisfied-bounds.stderr Add trait diff highlighting logic and use it in E0277 2024-11-02 03:08:04 +00:00
unsatisfied-evaluatable-bounds.rs
unsatisfied-evaluatable-bounds.stderr
unsatisfied-outlives-bounds.rs
unsatisfied-outlives-bounds.stderr
wfcheck_err_leak_issue_118179.rs fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
wfcheck_err_leak_issue_118179.stderr fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00