Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
The previous logic incorrectly matches the deepest child of the current directory that is a crate.