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: Initial support for implicit drop inlay hint #16000

Merged
merged 1 commit into from Dec 1, 2023

Conversation

HKalbasi
Copy link
Member

@HKalbasi HKalbasi commented Dec 1, 2023

cc #15785

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 1, 2023
@HKalbasi
Copy link
Member Author

HKalbasi commented Dec 1, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 1, 2023

📌 Commit 4d55cac has been approved by HKalbasi

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 1, 2023

⌛ Testing commit 4d55cac with merge 6e6a0b0...

@bors
Copy link
Collaborator

bors commented Dec 1, 2023

☀️ Test successful - checks-actions
Approved by: HKalbasi
Pushing 6e6a0b0 to master...

@bors bors merged commit 6e6a0b0 into rust-lang:master Dec 1, 2023
10 checks passed
@lnicola lnicola changed the title Initial support for implicit drop inlay hint feat: Initial support for implicit drop inlay hint Dec 3, 2023
@lnicola
Copy link
Member

lnicola commented Dec 4, 2023

image

@rben01
Copy link

rben01 commented Dec 4, 2023

Would it be possible for these to go above the statement they precede instead of to the left? Shifting a line right to make room for the drop inlay hint doesn't look so nice. Alternatively, for me, it'd be preferable to have the drop visible when hovering over the return or the }.

@Veykril
Copy link
Member

Veykril commented Dec 4, 2023

Unlikely, this is a limitation by the language server protocol. And VSCode doesnt support ghost text between lines either (only annotations but those dont work that well for this purpose)

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.

None yet

6 participants