Stream: t-compiler/rust-analyzer

Topic: Where to put tests for macros?


Jade (Apr 02 2021 at 05:14, on Zulip):

I want to debug/write a test for a macro_rules! macro originally sourced from rustc that breaks RA's macro analysis. Where can I put such a test? It seems to parse ok, but causes a macro-error, so the harnessing on the syntax crate wouldn't work for it.

Dawer (Apr 02 2021 at 06:09, on Zulip):

You mean MBE expansion test? They are in crates/mbe/src/tests/expand.rs

Jade (Apr 02 2021 at 08:00, on Zulip):

hm. upon some manual "bisection" I realized I simply rediscovered https://github.com/rust-analyzer/rust-analyzer/issues/8092 :laughing: oops. ty for the help!

Last update: Jul 27 2021 at 22:00UTC