Rust-analyzer: `mod` statement in file included multiple times

Created on 27 Mar 2020  路  1Comment  路  Source: rust-analyzer/rust-analyzer

I very much appreciate that this is a niche case, but thought I'd report it anyway 馃槢

I have a project which includes a file common/convert.rs from two different modules. This file declares a submodule "error" common/error.rs.

Rust-analyzer reports a spurious error at a seemingly unrelated line in one of the modules that includes common/convert.rs:

image

Unfortunately, the project is extremely large and is not public.

A-macro

Most helpful comment

Yeah, I guess we need to revert the pr which added support for include! :D

>All comments

Yeah, I guess we need to revert the pr which added support for include! :D

Was this page helpful?
0 / 5 - 0 ratings