rust/tests
Matthias Krüger aeb4c0413c
Rollup merge of #124394 - gurry:123863-ice-unexpected-region, r=lcnr
Fix ICE on invalid const param types

Fixes ICE #123863 which occurs because the const param has a type which is not a `bool`, `char` or an integral type.

The ICEing code path begins here in `typeck_with_fallback`: cb3752d20e/compiler/rustc_hir_typeck/src/lib.rs (L167)

The `fallback` invokes the `type_of` query and that eventually ends up calling `ct_infer` from the lowering code over here:
cb3752d20e/compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs (L561) and `ct_infer` ICEs at this location: cb3752d20e/compiler/rustc_hir_analysis/src/collect.rs (L392)

To fix the ICE it I'm triggering a `span_delayed_bug` before we hit `ct_infer` if the type of the const param is not one of the supported types

### Edit
On `@lcnr's` suggestion I've changed the approach to not let `ReStatic` region hit the `bug!` in `ct_infer` instead of triggering a `span_delayed_bug`.
2024-04-27 20:46:08 +02:00
..
assembly also update windows slack-protector tests 2024-04-22 23:45:04 -04:00
auxiliary
codegen Auto merge of #121298 - nikic:writable, r=cuviper 2024-04-25 04:31:56 +00:00
codegen-units
coverage Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
coverage-run-rustdoc
crashes Rollup merge of #124394 - gurry:123863-ice-unexpected-region, r=lcnr 2024-04-27 20:46:08 +02:00
debuginfo Update lldb only tests 2024-04-26 04:11:05 +03:00
incremental Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
mir-opt Fix tests and bless 2024-04-24 13:12:33 +01:00
pretty Fix tests and bless 2024-04-24 13:12:33 +01:00
run-make Also support MSVC in print-native-static-libs test 2024-04-27 00:26:06 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #118441 - GuillaumeGomez:display-stability-version, r=rustdoc 2024-04-19 14:17:29 +00:00
rustdoc-gui Rollup merge of #124197 - GuillaumeGomez:move-duplicated-code, r=notriddle 2024-04-23 06:24:56 +02:00
rustdoc-js rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
rustdoc-js-std rustdoc-search: fix description on aliases in results 2024-04-18 22:21:29 -07:00
rustdoc-json
rustdoc-ui Rollup merge of #122591 - gurry:122162-impl-type-binding-suggestion, r=fmease 2024-04-23 17:25:14 +02:00
ui Rollup merge of #124394 - gurry:123863-ice-unexpected-region, r=lcnr 2024-04-27 20:46:08 +02:00
ui-fulldeps Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco 2024-04-23 17:25:17 +02:00
COMPILER_TESTS.md