Skip to content

Inline macros do not preserve spaces correctly #14108

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
lh123 opened this issue Feb 9, 2023 · 0 comments · Fixed by #14114
Closed

Inline macros do not preserve spaces correctly #14108

lh123 opened this issue Feb 9, 2023 · 0 comments · Fixed by #14114
Labels
C-bug Category: bug

Comments

@lh123
Copy link
Contributor

lh123 commented Feb 9, 2023

rust-analyzer version: 0.3.1394-standalone (0b32b65 2023-02-05)

rustc version: rustc 1.66.0 (69f9c33d7 2022-12-12)

macro_rules! whitespace {
    () => {
        if true {}
    };
}

fn f() {
    whitespace!();
}

After inline

fn f() {
    iftrue{};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
1 participant