about summary refs log tree commit diff
path: root/tests/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-26 09:28:41 +0000
committerbors <bors@rust-lang.org>2022-09-26 09:28:41 +0000
commit1f929659acff378adad85fcea747f8b19a0f819f (patch)
tree31f21c019d021f78100998ee0b499f5fc3b371fb /tests/incremental/thinlto
parent73ab709b38b171d561c119f5c6f94af1bf2e4f3b (diff)
parent9ede5f073564f140194229546fc2bf5eb6267b62 (diff)
downloadrust-1f929659acff378adad85fcea747f8b19a0f819f.tar.gz
rust-1f929659acff378adad85fcea747f8b19a0f819f.zip
Auto merge of #13209 - lowr:feat/inference-for-generator, r=Veykril
feat: type inference for generators

This PR implements basic type inference for generator and yield expressions.

Things not included in this PR:
- Generator upvars and generator witnesses are not implemented. They are only used to determine auto trait impls, so basic type inference should be fine without them, but method resolutions with auto trait bounds may not be resolved correctly.

Open questions:
- I haven't (yet) implemented `HirDisplay` for `TyKind::Generator`, so generator types are just shown as "{{generator}}" (in tests, inlay hints, hovers, etc.), which is not really nice. How should we show them?
- I added moderate amount of stuffs to minicore. I especially didn't want to add `impl<T> Deref for &T` and `impl<T> Deref for &mut T` exclusively for tests for generators; should I move them into the test fixtures or can they be placed in minicore?

cc #4309
Diffstat (limited to 'tests/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions