I'm getting this error, but I don't really know why and I'm not sure what it's talking about.
That just means that the file you are viewing isn't
mod declared in the workspace and therefor not in the module tree. We emit this warning for files as we do not analyze those.
any way we could improve the wording here?
Sorry, I should have mentioned that this is for my lib.rs.
Ah. The problem was that I imported one project/directory into emacs (
foo) then moved another project inside of it (
foo/bar). Thus emacs / LSP-mode was running rust-analyzer rooted up one directory.
The fix was to manually say that this directory was it's own thing (