Files
rust/compiler
Guillaume Gomez acf48fcb9d Rollup merge of #133368 - compiler-errors:codegen-select-unconstrained-params, r=lcnr
Delay a bug when encountering an impl with unconstrained generics in `codegen_select`

Despite its name, `codegen_select` is what powers `Instance::try_resolve`, which is used in pre-codegen contexts to try to resolve a method where possible. One place that it's used is in the "recursion MIR lint" that detects recursive MIR bodies.

If we encounter an impl in `codegen_select` that contains unconstrained generic parameters, we expect that impl to caused an error to be reported; however, there's no temporal guarantee that this error is reported *before* we call `codegen_select`. This is what a delayed bug is *for*, and this PR makes us use a delayed bug rather than asserting something about errors already having been emitted.

Fixes  #126646
2024-11-28 03:14:46 +01:00
..
2024-11-26 10:45:21 +00:00
2024-11-26 10:45:21 +00:00
2024-11-25 16:10:55 +11:00
2024-11-23 13:52:54 +01:00
2024-11-26 10:45:21 +00:00
2024-11-23 13:52:57 +01:00