]> git.lizzy.rs Git - rust.git/commit
Compute more mathematically well-rounded notion of transitive deps
authorAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 23 Mar 2021 09:49:55 +0000 (12:49 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 23 Mar 2021 09:49:55 +0000 (12:49 +0300)
commit45a8f37b6ae230db6c30c013f17d8aebac98a5e1
treeddd1d23321319816f932551c0d8b0c42e590e40b
parent4b997b86633b1c0ca134d89e8236d285422c04e3
Compute more mathematically well-rounded notion of transitive deps

By including the crate itself, we make the resulting set closed with
respect to `transitve_reveres_dependencies` operation, as it becomes a
proper transitive closure. This just feels more proper and mathy.

And, indeed, this actually allows us to simplify call sites somewhat.
crates/base_db/src/input.rs
crates/hir/src/lib.rs
crates/ide_db/src/search.rs