rust/tests
Matthias Krüger 20af878588
Rollup merge of #132047 - compiler-errors:rbv-rtn-cleanup, r=cjgillot
Robustify and genericize return-type-notation resolution in `resolve_bound_vars`

#129629 implemented return-type-notation (RTN) in its path form, like `where T::method(..): Bound`. As part of lowering, we must record the late-bound vars for the where clause introduced by the method (namely, its early- and late-bound lifetime arguments, since `where T::method(..)` turns into a higher-ranked where clause over all of the lifetimes according to [RFC 3654](https://rust-lang.github.io/rfcs/3654-return-type-notation.html#converting-to-higher-ranked-trait-bounds)).

However, this logic was only looking at the where clauses of the parent item that the `T::method(..)` bound was written on, and not any parent items. This PR generalizes that logic to look at the parent item (i.e. the outer impl or trait) instead and fixes a (debug only) assertion as an effect.

This logic is also more general and likely easier to adapt to more interesting (though likely very far off) cases like non-lifetime binder `for<T: Trait> T::method(..): Send` bounds.

Tracking:

- https://github.com/rust-lang/rust/issues/109417
2024-12-01 08:15:21 +01:00
..
assembly Support floats in input/output in vector registers of PowerPC inline assembly 2024-11-29 03:10:07 +09:00
auxiliary Support input/output in vector registers of s390x inline assembly 2024-11-22 04:18:14 +09:00
codegen Rollup merge of #131551 - taiki-e:ppc-asm-vreg-inout, r=Amanieu 2024-11-30 12:57:32 +08:00
codegen-units Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
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 Make compare_impl_item into a query 2024-11-30 16:45:01 +00:00
debuginfo Mark numeric-types.rs as 64-bit only for now 2024-11-17 04:16:59 +08:00
incremental Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
mir-opt Doc comment custom MIR debuginfo. 2024-11-29 12:32:55 +01:00
pretty Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
run-make Rollup merge of #133667 - sunwxg:xiaoguang/remove-unused-code, r=clubby789 2024-11-30 19:24:42 +01:00
rustdoc Add regression test for prelude types 2024-11-25 17:25:25 +01:00
rustdoc-gui Align impl doc block with impl keyword 2024-11-13 15:13:31 +01:00
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 Rename Receiver -> LegacyReceiver 2024-10-22 12:55:16 +00:00
rustdoc-ui Rollup merge of #133584 - ehuss:more-2024-unstable-options, r=compiler-errors 2024-11-29 16:02:23 +01:00
ui Rollup merge of #132047 - compiler-errors:rbv-rtn-cleanup, r=cjgillot 2024-12-01 08:15:21 +01:00
ui-fulldeps Rollup merge of #132410 - bjorn3:yet_another_driver_refactor_round, r=cjgillot 2024-11-27 22:23:24 +01:00
COMPILER_TESTS.md