Skip to content

Conversation

@benodiwal
Copy link
Contributor

@benodiwal benodiwal commented Jan 2, 2026

Closes #21010

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 2, 2026
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_expect(
InlayHintsConfig { type_hints: true, ..DISABLED_CONFIG },
r#"
fn identity<T>(t: T) -> T {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets put a const parameter and lifetime parameter here as well to test them all

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the tests

@benodiwal
Copy link
Contributor Author

@Veykril added support for const parameter and lifetime parameter

Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril changed the title Fix/generic param inlay hint location links feat: Add location links for generic parameter type hints Jan 3, 2026
@Veykril Veykril added this pull request to the merge queue Jan 3, 2026
Merged via the queue into rust-lang:master with commit 8f5634a Jan 3, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 3, 2026
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.

Type inlay hints for generic type parameters are missing location links

3 participants