rust/tests
bors 13b5a4e43b Auto merge of #129716 - compiler-errors:closure-debuginfo, r=cjgillot
Don't use `typeck_root_def_id` in codegen for finding closure's root

Generating debuginfo in codegen currently peels off all the closure-specific generics (which presumably is done because they're redundant). This doesn't currently work correctly for the bodies we synthesize for async closures's returned coroutines (#128506), leading to #129702.

Specifically, `typeck_root_def_id` for some `DefKind::SyntheticCoroutineBody` just returns itself (because it loops while `is_typeck_child` is `true`, and that returns `false` for this defkind), which means we don't end up peeling off the coroutine-specific generics, and we end up encountering an otherwise unreachable `CoroutineWitness` type leading to an ICE.

This PR fixes `is_typeck_child` to consider `DefKind::SyntheticCorotuineBody` to be a typeck child, fixing `typeck_root_def_id` and suppressing this debuginfo bug.

Fixes #129702
2024-09-16 10:16:32 +00:00
..
assembly Rollup merge of #130325 - workingjubilee:plus-minus-zero-redux, r=RalfJung,jieyouxu 2024-09-15 23:51:25 -07:00
auxiliary Clean up users of rust_dbg_call 2024-04-17 15:08:08 -04:00
codegen Update try_question_mark_nop.rs test 2024-09-14 13:30:36 +08:00
codegen-units Fix and enable disabled codegen-units tests 2024-08-10 14:03:27 -04:00
coverage coverage: Extract `executor::block_on` from several async coverage tests 2024-09-10 16:08:36 +10:00
coverage-run-rustdoc coverage: Extract hole spans from HIR instead of MIR 2024-07-08 21:22:56 +10:00
crashes tests: more ice tests 2024-09-15 21:18:41 +02:00
debuginfo Auto merge of #130052 - khuey:clear-dilocation-after-const-emission, r=michaelwoerister 2024-09-13 08:57:41 +00:00
incremental simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
mir-opt Simplify the canonical clone method to copy 2024-09-14 13:30:35 +08:00
pretty Use `doc(hidden)` instead of `allow(missing_docs)` in the test harness 2024-09-11 12:14:35 +02:00
run-make Rollup merge of #130156 - nebulark:test_buildinfo, r=jieyouxu 2024-09-12 20:37:15 +10:00
run-pass-valgrind rustfmt `tests/run-pass-valgrind/`. 2024-06-04 09:53:02 +10:00
rustdoc rustdoc: rename `issue-\d+.rs` tests to have meaningful names 2024-09-12 13:47:51 -07:00
rustdoc-gui Rollup merge of #129796 - GuillaumeGomez:unify-code-examples, r=notriddle 2024-09-05 18:58:56 +02:00
rustdoc-js rustdoc-search: allow trailing `Foo ->` arg search 2024-09-05 17:58:05 -07:00
rustdoc-js-std rustdoc-search: allow trailing `Foo ->` arg search 2024-09-05 17:58:05 -07:00
rustdoc-json rustdoc: normalise type/field names in rustdoc-json-types/jsondoclint 2024-09-01 23:58:08 +03:00
rustdoc-ui rustdoc: re-bless stderrs after renaming the test case 2024-09-12 13:48:51 -07:00
ui Auto merge of #129716 - compiler-errors:closure-debuginfo, r=cjgillot 2024-09-16 10:16:32 +00:00
ui-fulldeps Re-enable `ConstArgKind::Path` lowering by default 2024-09-12 13:56:01 -04:00
COMPILER_TESTS.md