rust/tests
许杰友 Jieyou Xu (Joe) b6015a68de
Rollup merge of #143551 - compiler-errors:root-sub, r=cjgillot
Dont resolve instance of root in `mir_callgraph_cyclic`

`Instance::try_resolve` on a default trait body method will always fail, since it's still possible to further substitute. This leads to a cycle, since in `tests/mir-opt/inline_default_trait_body.rs`, both `Trait::a` and `Trait::b` need to consider the other to be cyclical, but since we couldn't resolve a body, we'd just consider *nothing* to be cyclical.

The root instance we care about when computing `mir_callgraph_cyclic` is trivial to compute (it's just `InstanceKind::Item`), so just replace it with a call to `Instance::new_raw`.

r? `@cjgillot` `@oli-obk`

Fixes rust-lang/rust#143534
2025-07-07 19:45:41 +08:00
..
assembly Skip align tests on wasm 2025-07-06 18:10:52 -04:00
auxiliary minicore: use core's diagnostic::on_unimplemented messages 2025-07-03 10:22:40 +02:00
codegen Skip align tests on wasm 2025-07-06 18:10:52 -04:00
codegen-units Auto merge of #142893 - Mark-Simulacrum:no-const-collect, r=oli-obk 2025-06-27 12:57:05 +00:00
coverage Remove let_chains feature 2025-06-30 07:49:20 -05:00
coverage-run-rustdoc
crashes Remove support for dyn* 2025-07-01 19:00:21 +00:00
debuginfo tests: {Meta,Pointee}Sized in non-minicore tests 2025-06-16 23:04:33 +00:00
incremental Stop requiring HIR for trait item wf checks 2025-06-30 08:45:43 +00:00
mir-opt Rollup merge of #143551 - compiler-errors:root-sub, r=cjgillot 2025-07-07 19:45:41 +08:00
pretty Rewrite empty attribute lint 2025-07-06 09:51:35 +02:00
run-make Rollup merge of #143482 - ia0:fix, r=fee1-dead 2025-07-07 19:45:40 +08:00
rustdoc Rollup merge of #143381 - fee1-dead-contrib:push-pzxuvlnymxpu, r=GuillaumeGomez 2025-07-04 05:47:28 +02:00
rustdoc-gui Update rustdoc GUI tests 2025-07-01 15:49:45 +02:00
rustdoc-js Migrate some tests away from concat-idents 2025-06-24 10:54:54 +00:00
rustdoc-js-std add doc(alias("AsciiChar")) to core::ascii::Char 2025-06-20 11:11:51 -05:00
rustdoc-json Port #[target_feature] to the new attribute parsing infrastructure 2025-07-03 07:54:19 +02:00
rustdoc-ui refactor: Make -Ztrack-diagnostics emit like a note 2025-07-03 07:19:25 -06:00
ui Rollup merge of #143464 - workingjubilee:make-debug-rs-cross-compile, r=oli-obk 2025-07-07 19:45:39 +08:00
ui-fulldeps remove rustc_smir from tests 2025-07-07 03:45:09 +00:00
COMPILER_TESTS.md