Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Oct 29, 2020

This just hints all self parameters with the self token, this is therefor equal to how all other parameters are displayed, but given the self param special in how its defined in a function signature it might make sense to keep the &/&mut parts as well as emitting those tokens for explict Self types that are taken by ref like self: &Rc<Self>?

Fixes #6400

@Veykril Veykril force-pushed the self-hint branch 2 times, most recently from 6248ee2 to 2a2be57 Compare November 2, 2020 20:53
@matklad
Copy link
Contributor

matklad commented Nov 3, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 3, 2020

@bors bors bot merged commit 5e62233 into rust-lang:master Nov 3, 2020
@Veykril Veykril deleted the self-hint branch November 27, 2020 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explicit self type annotation breaks inlay hints in free-function-style calls

3 participants