rust/tests
Matthias Krüger ff9a0b19ff
Rollup merge of #124104 - compiler-errors:parent-generic-use, r=oli-obk
Fix capturing duplicated lifetimes via parent in `precise_captures` (`impl use<'...>`)

For technical reasons related to the way that `Self` and `T::Assoc` are lowered from HIR -> `rustc_middle::ty`, an opaque may mention in its bounds both the original early-bound lifetime from the parent `impl`/`fn`, *and* the *duplicated* early-bound lifetime on the opaque.

This is fine -- and has been fine since `@cjgillot` rewrote the way we handled opaque lifetime captures, and we went further to allow this behavior explicitly in https://github.com/rust-lang/rust/pull/115659. It's worthwhile to read this PR's technical section to recall how this duplication works and when it acts surprisingly.

The problem here is that the check that make sure that `impl use<'a, 'b>` lists all of the opaque's captured lifetimes wasn't smart enough to consider both these captured lifetimes and the original lifetimes they're duplicated from to be equal. This PR fixes that.

r? oli-obk
2024-04-20 11:10:31 +02:00
..
assembly Add support for Arm64EC inline assembly 2024-04-10 10:06:44 -07:00
auxiliary
codegen Make checked ops emit *unchecked* LLVM operations where feasible 2024-04-18 18:11:21 -07:00
codegen-units
coverage coverage. Add basic tests for MC/DC 2024-04-20 00:34:40 +08:00
coverage-run-rustdoc
crashes Auto merge of #124176 - matthiaskrgr:tests_are_the_best, r=jieyouxu 2024-04-20 06:36:58 +00:00
debuginfo disable two debuginfo tests under gdb 15 2024-04-15 12:46:22 +00:00
incremental Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
mir-opt Auto merge of #124114 - scottmcm:better-checked, r=workingjubilee 2024-04-20 04:11:16 +00:00
pretty
run-make Rollup merge of #123729 - jieyouxu:rmake-refactor-2, r=oli-obk 2024-04-19 19:30:48 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #118441 - GuillaumeGomez:display-stability-version, r=rustdoc 2024-04-19 14:17:29 +00:00
rustdoc-gui Add GUI test for copy path button 2024-04-17 16:56:14 +02:00
rustdoc-js rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
rustdoc-js-std rustdoc-search: fix description on aliases in results 2024-04-18 22:21:29 -07:00
rustdoc-json
rustdoc-ui Rollup merge of #123501 - Urgau:stabilize-check-cfg, r=petrochenkov 2024-04-16 17:54:41 +02:00
ui Rollup merge of #124104 - compiler-errors:parent-generic-use, r=oli-obk 2024-04-20 11:10:31 +02:00
ui-fulldeps Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
COMPILER_TESTS.md