rust/tests
bors d327d651e2 Auto merge of #145711 - lcnr:non-defining-uses-hir-typeck, r=BoxyUwU
Support non-defining uses in HIR typeck

This changes the impl of `NormalizesTo` for opaque types to be structural during HIR typeck. The previous impl equated region variables of the opaque type key with existing entries which can result in spurious leak check errors and also results in mismatches with MIR borrowck, theoretically causing ICE.

The approach is very similar to rust-lang/rust#145244 in MIR typeck:
- we collect all uses of opaque types during HIR typeck
- before writeback, we search for *defining uses*
  - the opaque type key has fully universal generic args modulo regions
  - the hidden type has no infer vars
- we use these defining uses to compute the concrete type for the opaque and map it to the definition site
- we use this concrete type to check the type of all uses of opaques during HIR typeck. This also constrains infer vars in non-defining uses

Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/135, fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/49.

r? `@BoxyUwU`
2025-08-25 22:56:37 +00:00
..
assembly-llvm Rollup merge of #145761 - Gelbpunkt:hermit-aarch64_be, r=wesleywiser 2025-08-22 22:01:01 -04:00
auxiliary Set NumRegisterParameters LLVM module flag to N when -Zregparm=N is 2025-08-13 17:37:30 +02:00
codegen-llvm Rollup merge of #145380 - okaneco:add-codegen-tests, r=Mark-Simulacrum 2025-08-22 22:00:50 -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 coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
coverage-run-rustdoc
crashes fix: Reject async assoc fns of const traits/impls in ast_passes 2025-08-15 16:31:10 +09:00
debuginfo Rollup merge of #145745 - heiher:ignore-basic-stepping, r=lqd 2025-08-22 22:00:58 -04:00
incremental Bless incremental tests. 2025-07-13 13:50:01 +00:00
mir-opt Rollup merge of #142185 - saethlin:refprop-moves, r=cjgillot 2025-08-22 22:00:46 -04:00
pretty Update autodiff tests for the new intrinsics impl 2025-08-14 18:33:43 +00:00
run-make Update tests/run-make/rustdoc-default-output/ output 2025-08-23 12:15:37 +02:00
rustdoc Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycat 2025-08-24 19:46:17 +00:00
rustdoc-gui Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycat 2025-08-24 19:46:17 +00:00
rustdoc-js rustdoc: add tests for raw pointers in type-based search 2025-08-21 17:50:12 -05:00
rustdoc-js-std tests/rustdoc-js-std/parser-errors.js: remove syntax that is now valid 2025-08-21 20:50:33 -05:00
rustdoc-json rustdoc-json: Move #[macro_export] from Other to it's own variant 2025-07-30 19:57:32 +00:00
rustdoc-ui Bless rustdoc-ui. 2025-08-22 20:31:24 +00:00
ui Auto merge of #145711 - lcnr:non-defining-uses-hir-typeck, r=BoxyUwU 2025-08-25 22:56:37 +00:00
ui-fulldeps On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
COMPILER_TESTS.md