Skip to content

Eager macro breaks token mapping for arguments after a macro #14841

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

Closed
HKalbasi opened this issue May 18, 2023 · 1 comment · Fixed by #14998
Closed

Eager macro breaks token mapping for arguments after a macro #14841

HKalbasi opened this issue May 18, 2023 · 1 comment · Fixed by #14998
Assignees
Labels
A-macro macro expansion C-bug Category: bug

Comments

@HKalbasi
Copy link
Member

HKalbasi commented May 18, 2023

let a = 2;
format!("{} {} {}", a, vec![2, 3], a);

Go to definition on the first a works correctly, but on the second a will go to the vector internals.

### Tasks
@Veykril
Copy link
Member

Veykril commented Aug 1, 2023

This should be fixed for good now

@Veykril Veykril closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants