rust/tests
Guillaume Gomez 06815d0cc1
Rollup merge of #133519 - compiler-errors:xform-ret-wf, r=lcnr
Check `xform_ret_ty` for WF in the new solver to improve method winnowing

This is a bit interesting. Method probing in the old solver is stronger than the new solver because eagerly normalizing types causes us to check their corresponding trait goals. This is important because we don't end up checking all of the where clauses of a method when method probing; just the where clauses of the impl. i.e., for:

```
impl Foo
where
   WC1,
{
    fn method()
    where
        WC2,
    {}
}
```

We only check WC1 and not WC2. This is because at this point in probing the method is instantiated w/ infer vars, and checking the where clauses in WC2 will lead to cycles if we were to check them (at least that's my understanding; I could investigate changing that in general, incl. in the old solver, but I don't have much confidence that it won't lead to really bad overflows.)

This PR chooses to emulate the old solver by just checking that the return type is WF. This is theoretically stronger, but I'm not too worried about it. I think we alternatively have several approaches we can take here, though this one seems the simplest. Thoughts?

r? lcnr
2024-11-28 03:14:48 +01:00
..
assembly Make s390x non-clobber-only vector register support unstable 2024-11-24 21:42:22 +09:00
auxiliary Support input/output in vector registers of s390x inline assembly 2024-11-22 04:18:14 +09:00
codegen Update test expectations to accept LLVM 'initializes' attribute 2024-11-25 15:30:35 +01:00
codegen-units
coverage Auto merge of #133474 - RalfJung:gvn-miscompile, r=compiler-errors 2024-11-27 15:43:56 +00:00
coverage-run-rustdoc coverage: Restrict empty-span expansion to only cover { and } 2024-11-08 20:43:08 +11:00
crashes Rollup merge of #133368 - compiler-errors:codegen-select-unconstrained-params, r=lcnr 2024-11-28 03:14:46 +01:00
debuginfo Mark numeric-types.rs as 64-bit only for now 2024-11-17 04:16:59 +08:00
incremental fixup some test directives 2024-11-17 22:15:54 +00:00
mir-opt comment out the old tests instead of adjusting them 2024-11-25 20:39:45 +01:00
pretty
run-make Rollup merge of #133513 - ChrisDenton:windows-msvc, r=jieyouxu 2024-11-26 20:35:41 -05:00
rustdoc Add regression test for prelude types 2024-11-25 17:25:25 +01:00
rustdoc-gui
rustdoc-js rustdoc-search: add standalone trailing :: test 2024-11-17 08:07:16 -07:00
rustdoc-js-std rustdoc search: allow queries to end in an empty path segment 2024-11-15 16:32:40 -06:00
rustdoc-json
rustdoc-ui Rollup merge of #133394 - compiler-errors:dyn-more-errors, r=lcnr 2024-11-26 12:03:44 -05:00
ui Rollup merge of #133519 - compiler-errors:xform-ret-wf, r=lcnr 2024-11-28 03:14:48 +01:00
ui-fulldeps Likely unlikely fix 2024-11-17 21:49:10 +01:00
COMPILER_TESTS.md