Non-inline modules not found in crate hierarchy #15965
Labels
C-bug
Category: bug
S-unactionable
Issue requires feedback, design decisions or is blocked on other work
Module files are erroneously marked as not within the crate hierarchy, with the majority of LSP functionality disabled, when the module declaration occurs within the body of a function.
Expected behavior: LSP works within both
main.rs
andmy_mod.rs
.Actual behavior: The first two characters in
my_mod.rs
have a warning:"file not included in crate hierarchy"
, and most LSP functionality, including finding of references, is non-functional withinmy_mod.rs
. LSP does work withinmain.rs
, including jump-to-definition onmy_mod::func()
.rust-analyzer version: Tested on both
rust-analyzer 1.74.0 (79e9716 2023-11-13)
andrust-analyzer 1.76.0-nightly (37b2813 2023-11-24)
.rustc version: Tested on both
rustc 1.74.0 (79e9716c9 2023-11-13)
andrustc 1.76.0-nightly (37b2813a7 2023-11-24)
.relevant settings: N/A
The text was updated successfully, but these errors were encountered: