rust-analyzer/crates/hir/src
Aleksey Kladov 7be2d2f008 internal: remove one more accidentally quadratic code-path
Definition::visibility was implemented in a rather roundabout way -- by
asking the parent module about the effective visibility.

This is problematic for a couple of reasons:

* first, it doesn't work for local items
* second, asking module about visibility of a child is a linear
  operation (that's a problem in itself, tracked in #9378)

Instead, lets ask the declared visibility directly, we have all the code
for it, and need only to actually us it.
2021-06-22 21:26:07 +03:00
..
semantics intenral: dont export impl details 2021-06-22 16:53:53 +03:00
attrs.rs Don't store call-site text offsets in hygiene info 2021-05-06 19:59:54 +02:00
db.rs Add more docs 2021-05-22 16:53:47 +03:00
diagnostics.rs internal: kill diagnostic sink 2021-06-13 22:05:47 +03:00
display.rs Don't store supertraits in ItemTree 2021-05-27 16:52:30 +03:00
from_id.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00
has_source.rs internal: more natural order of sources for TypeParam 2021-06-14 22:42:43 +03:00
lib.rs internal: remove one more accidentally quadratic code-path 2021-06-22 21:26:07 +03:00
semantics.rs Nest all the or-patterns! 2021-06-17 17:37:14 +02:00
source_analyzer.rs clippy::redudant_borrow 2021-06-13 09:24:16 +05:30