rust/src/test
Dylan DPC 9cfd161cd5
Rollup merge of #99928 - compiler-errors:issue-99914, r=oli-obk
Do not leak type variables from opaque type relation

The "root cause" is that we call `InferCtxt::resolve_vars_if_possible` (3d9dd681f5) on the types we get back in `TypeError::Sorts` since I added a call to it in `InferCtxt::same_type_modulo_infer`. However if this `TypeError` comes from a `InferCtxt::commit_if_ok`, then it may reference type variables that do not exist anymore, which is problematic.

We avoid this by substituting the `TypeError` with the types we had before being generalized while handling opaques.

This is kinda gross, and I feel like we can get the same issue from other places where we generalize type/const inference variables. Maybe not? I don't know.

Fixes #99914
Fixes #99970
Fixes #100463
2022-08-30 16:56:07 +05:30
..
assembly Rollup merge of #100556 - Alex-Velez:patch-1, r=scottmcm 2022-08-21 16:54:01 +02:00
auxiliary
codegen Add another MaybeUninit array test with const 2022-08-29 23:17:24 -04:00
codegen-units Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
debuginfo Rollup merge of #98301 - ortem:pretty-printers-nonzero, r=wesleywiser 2022-08-28 09:35:12 +02:00
incremental Rollup merge of #99821 - cjgillot:ast-lifetimes-2, r=compiler-errors 2022-08-29 16:49:39 +05:30
mir-opt Rollup merge of #100239 - RalfJung:const-prop-uninit, r=oli-obk 2022-08-29 16:49:40 +05:30
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make Implementation of import_name_type 2022-08-26 09:15:35 -07:00
run-make-fulldeps Auto merge of #92845 - Amanieu:std_personality, r=Mark-Simulacrum 2022-08-28 04:16:29 +00:00
run-pass-valgrind Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
rustdoc Rollup merge of #101018 - notriddle:notriddle/item-right-docblock-short, r=GuillaumeGomez 2022-08-27 13:14:21 +09:00
rustdoc-gui Rollup merge of #101046 - notriddle:notriddle/table-css, r=jsha 2022-08-27 13:14:23 +09:00
rustdoc-js
rustdoc-js-std
rustdoc-json Rustdoc-Json: Retain Stripped Modules when they are imported, not when they have items. 2022-08-29 00:15:10 +01:00
rustdoc-ui extend attrs if local_def_id exists 2022-08-28 01:20:26 +09:00
ui Rollup merge of #99928 - compiler-errors:issue-99914, r=oli-obk 2022-08-30 16:56:07 +05:30
ui-fulldeps Rollup merge of #101123 - JohnTitor:rm-register-attr, r=TaKO8Ki 2022-08-30 11:26:52 +05:30
COMPILER_TESTS.md