Skip to content

fix: Handle included files better in IDE layer #19880

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented May 28, 2025

This does not fully fix things, but it introduces a function that can be used to fix occurences. When using to_def functionality, the input node needs to come from the macro expanded include, not the real file that was included. This does unfortunately add more caller burden, but there is not really a way around it.

I consider this a fix #19873, the last point there is tracked already (macro calls in attributes)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 28, 2025
@Veykril Veykril enabled auto-merge May 28, 2025 08:16
@Veykril Veykril force-pushed the push-xmpxumsrkymk branch from 24a66a3 to 00b319a Compare May 28, 2025 08:24
This does not fully fix things, but it introduces a function that can be used to fix occurences.
When using `to_def` functionality, the input node needs to come from the macro expanded include, not the real file that was included.
This does unfortunately add more caller burden, but there is not really a way around it.
@Veykril Veykril force-pushed the push-xmpxumsrkymk branch from 00b319a to e72738d Compare May 28, 2025 08:38
@Veykril Veykril added this pull request to the merge queue May 28, 2025
Merged via the queue into rust-lang:master with commit 5900e25 May 28, 2025
14 checks passed
@Veykril Veykril deleted the push-xmpxumsrkymk branch May 28, 2025 09:01
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.

Semantics::expand_macro_call returns None on some macro calls from version 0.0.274 onwards
2 participants