Skip to content

Conversation

@jrmuizel
Copy link
Contributor

@jrmuizel jrmuizel commented Apr 4, 2025

Implicit field references during struct initialization were being dropped because get_definition was returning None because there were multiple definitions.

This adds a new helper, get_defintions, that supports returning more than one definition for a given token and hooks it up.

Fixes #19393

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 4, 2025
@jrmuizel jrmuizel force-pushed the multiple-definitions branch 2 times, most recently from b8e485a to 238186c Compare April 4, 2025 01:03
@jrmuizel jrmuizel force-pushed the multiple-definitions branch from 238186c to fede4c7 Compare April 4, 2025 13:14
Implicit field references during struct initialization were
being dropped because get_definition was returning None because
there were multiple definitions.

This adds a new helper, `get_defintions`, that supports returning
more than one definition for a given token and hooks it up.

Fixes rust-lang#19393
@jrmuizel jrmuizel force-pushed the multiple-definitions branch from fede4c7 to e9d997e Compare April 4, 2025 15:37
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 added this pull request to the merge queue Apr 4, 2025
Merged via the queue into rust-lang:master with commit 8b6621a Apr 4, 2025
12 checks passed
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.

scip output doesn't include implicit field references during struct initialization

3 participants