Stream: t-compiler/rust-analyzer

Topic: `cfg_attr` and `path`

rpjohnst (Jun 28 2020 at 17:38, on Zulip):

I'm seeing RA give an "unresolved module" error on something like #[cfg_attr(windows, path = "")] mod platform;. Is that something I could make work with the right configuration, or an unimplemented feature? It does seem like RA does know about cfg(windows) in general from invoking rustc --print cfg.

Jonas Schievink [he/him] (Jun 28 2020 at 17:39, on Zulip):

cfg_attr is mostly (entirely?) unimplemented at the moment

rpjohnst (Jun 28 2020 at 17:40, on Zulip):

Thanks- do you know of a tracking issue for cfg_attr? I couldn't find one

Jonas Schievink [he/him] (Jun 28 2020 at 17:41, on Zulip):

I don't think there is one, but there's lots of FIXMEs in the code

Last update: Jul 27 2021 at 22:45UTC