Skip to content

Conversation

@som-snytt
Copy link
Contributor

Fixes #23201

Previously, CheckUnused transformed the call tree of an Inlined node only after typer (and not after inlining), but inlining also results in non-trivial call trees.

Needs a minimized test, where an import is required for expansion but is unused at typer.

@som-snytt som-snytt marked this pull request as ready for review June 6, 2025 21:10
@som-snytt
Copy link
Contributor Author

Still needs a test.

@tgodzik
Copy link
Contributor

tgodzik commented Jun 11, 2025

Still needs a test.

Do you need help minimizing it ? I can try to take a look

@som-snytt
Copy link
Contributor Author

I'll take another swing at the test. Some combination of derives, inline given, and a macro.

I confirmed the second example on the ticket is similar; their workaround was to make the given not inline.

@som-snytt
Copy link
Contributor Author

Superseded by #24043

@som-snytt som-snytt closed this Oct 24, 2025
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.

False positive unused import of inline given needed by derives

2 participants