Stream: t-compiler/rust-analyzer

Topic: macro_rules with parens


Mario Carneiro (Dec 24 2020 at 01:08, on Zulip):

rust-analyzer gets quite confused about macros defined with parenthesis delimiters, although rust has no problems:

macro_rules! foo(
    () => {println!("hello")}
);
Lukas Wirth (Dec 24 2020 at 08:30, on Zulip):

looks like that was overlooked in a recent refactor

Jonas Schievink [he/him] (Dec 24 2020 at 09:53, on Zulip):

Oh, that's allowed? Wow

Jonas Schievink [he/him] (Dec 24 2020 at 09:54, on Zulip):

Should be easy to fix though

Laurențiu (Dec 24 2020 at 09:57, on Zulip):

https://github.com/rust-analyzer/rust-analyzer/pull/7027/

Last update: Jul 28 2021 at 03:30UTC