I have a project where some of the modules are only enabled on a certain arch, using #[cfg(target_arch = "...")] mod ... syntax. Currently rust-analyzer doesn't analyze those modules, so none of the function (hover, go to definition etc.) work. Is there a way to enable analyzing those modules? It's fine if I need to restrict analysis to only that arch as the code generated for this arch subsumes code for other archs.
Actually I was wrong, that didn't fix the issue. I still get no error checking & reporting for the modules behind the #[cfg(target_arch = "...")].
I was confused before because I saw some error checking, but it turns out I only get syntax errors. I don't get any type errors even when there are dozens of errors in a module.