rust/tests
许杰友 Jieyou Xu (Joe) 765e8c75b0
Rollup merge of #131864 - lrh2000:upcast_reorder, r=WaffleLapkin
Never emit `vptr` for empty/auto traits

Emiting `vptr`s for empty/auto traits is unnecessary (#114942) and causes unsoundness in `trait_upcasting` (#131813). This PR should ensure that we never emit vtables for such traits. See the linked issues for more details.

I'm not sure if I can add tests for the vtable layout. So this PR only adds tests for the soundness hole (i.e., the segmentation fault will disappear after this PR).

Fixes #114942
Fixes #131813

Cc #65991 (tracking issue for `trait_upcasting`)

r? `@WaffleLapkin`  (per https://github.com/rust-lang/rust/issues/131813#issuecomment-2419969745)
2024-10-18 14:52:25 +01:00
..
assembly Convert to a rmake-test 2024-10-16 18:58:17 +02:00
auxiliary
codegen Auto merge of #131572 - cuviper:ub-index_range, r=thomcc 2024-10-17 22:18:24 +00:00
codegen-units
coverage Dont ICE when computing coverage of synthetic async closure body 2024-10-18 20:14:02 +11:00
coverage-run-rustdoc
crashes Rollup merge of #131802 - compiler-errors:fnonce-coverage, r=Zalathar 2024-10-18 12:00:51 +01:00
debuginfo Rollup merge of #131521 - jdonszelmann:rc, r=joboet 2024-10-15 12:33:36 -04:00
incremental Bless incremental tests. 2024-10-04 23:50:01 +00:00
mir-opt bless mir-opt tests 2024-10-17 10:22:55 +02:00
pretty Add pretty, ui, and feature-gate tests for the enzyme/autodiff frontend 2024-10-11 20:38:43 +02:00
run-make Rollup merge of #131755 - jfrimmel:avr-rjmp-offset-regression-test, r=jieyouxu 2024-10-18 12:00:50 +01:00
rustdoc Auto merge of #131797 - matthiaskrgr:rollup-lzpze2k, r=matthiaskrgr 2024-10-16 20:50:53 +00:00
rustdoc-gui Strengthen some GUI tests 2024-10-09 21:23:20 +02:00
rustdoc-js
rustdoc-js-std Fix rustdoc-js-std path-ordering test due to API removal 2024-10-02 11:15:48 +02:00
rustdoc-json rustdoc-JSON: Rename "object safe" to "dyn compatible" 2024-10-16 23:00:49 +02:00
rustdoc-ui Rollup merge of #131691 - GuillaumeGomez:intra-doc-link-filter-out-2, r=notriddle 2024-10-16 20:15:53 +02:00
ui Rollup merge of #131864 - lrh2000:upcast_reorder, r=WaffleLapkin 2024-10-18 14:52:25 +01:00
ui-fulldeps update bootstrap configs 2024-10-15 20:30:23 -07:00
COMPILER_TESTS.md