Commits
100
Nodes
30
dir edges
16
co_change edges
426
Hub shadows
5
Universal hubs
3
Cross-layer hub correlation
directory_coupling ↔ co_change
r = 0.1969
near-zero hub persistence — each layer reveals a substantially different structural truth
not significant
Hub shadows (5)
Files with a large gap between directory rank (declared) and co-change rank (behavioral).
compiler/rustc_resolve/src/build_reduced_graph.rs
6 commits
dir rank
#3
→
co_change rank
#28
gap
25
compiler/rustc_resolve/src/def_collector.rs
6 commits
dir rank
#4
→
co_change rank
#29
gap
25
compiler/rustc_resolve/src/diagnostics.rs
10 commits
dir rank
#1
→
co_change rank
#21
gap
20
compiler/rustc_session/src/config.rs
11 commits
dir rank
#11
→
co_change rank
#1
gap
10
compiler/rustc_middle/src/dep_graph/graph.rs
10 commits
dir rank
#12
→
co_change rank
#2
gap
10
Universal hubs (3)
High in both layers — architectural backbone.
lib.rs
compiler/rustc_resolve/src/lib.rs
lang_items.rs
compiler/rustc_hir/src/lang_items.rs
context.rs
compiler/rustc_middle/src/ty/context.rs
Hub ranking (30 nodes)
| # | File | hub score | commits | archetype |
|---|---|---|---|---|
| 1 | lib.rs | 1.1034 | 9 | universal_hub |
| 2 | diagnostics.rs | 1.0690 | 10 | hub_shadow |
| 3 | lang_items.rs | 1.0690 | 8 | universal_hub |
| 4 | context.rs | 1.0690 | 8 | universal_hub |
| 5 | impls_ty.rs | 1.0690 | 8 | |
| 6 | layout.rs | 1.0690 | 8 | |
| 7 | hir.rs | 1.0690 | 7 | |
| 8 | stable_hash_impls.rs | 1.0690 | 7 | |
| 9 | build_reduced_graph.rs | 1.0690 | 6 | hub_shadow |
| 10 | def_collector.rs | 1.0690 | 6 | hub_shadow |
| 11 | config.rs | 1.0345 | 11 | hub_shadow |
| 12 | graph.rs | 1.0345 | 10 | hub_shadow |
| 13 | options.rs | 1.0345 | 10 | |
| 14 | symbol.rs | 1.0345 | 10 | |
| 15 | int_macros.rs | 1.0345 | 8 | |
| 16 | uint_macros.rs | 1.0345 | 8 | |
| 17 | dep_node.rs | 1.0345 | 7 | |
| 18 | def_id.rs | 1.0345 | 7 | |
| 19 | aot.rs | 1.0000 | 7 | |
| 20 | lib.rs | 1.0000 | 7 | |
| 21 | lib.rs | 1.0000 | 7 | |
| 22 | keys.rs | 1.0000 | 6 | |
| 23 | stable_hasher.rs | 1.0000 | 6 | |
| 24 | qualifs.rs | 0.9655 | 8 | |
| 25 | lib.rs | 0.9655 | 7 | |
| 26 | link.rs | 0.9655 | 7 | |
| 27 | tests.rs | 0.9655 | 7 | |
| 28 | mod.rs | 0.9655 | 6 | |
| 29 | mod.rs | 0.9655 | 6 | |
| 30 | ich.rs | 0.6897 | 6 |