Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Render type parameter projection target bounds in inlays #18925

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jan 12, 2025

Basically if we have some projection <S as T>::Assoc if Assoc here itself has known bounds (other than Sized) we instead render that type as impl Bounds (where Bounds are the bounds of Assoc as that is generally more useful information)

Fixes #17870

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 12, 2025
@Veykril Veykril force-pushed the push-mtxxvpowwtrt branch 2 times, most recently from 2b55644 to 5530167 Compare January 15, 2025 07:54
@Veykril Veykril enabled auto-merge January 15, 2025 07:56
@Veykril Veykril added this pull request to the merge queue Jan 15, 2025
Merged via the queue into rust-lang:master with commit 9384cee Jan 15, 2025
9 checks passed
@Veykril Veykril deleted the push-mtxxvpowwtrt branch January 15, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inlay type hints not so useful in for loop on impl IntoIterator<Item: Trait>
2 participants