rust-lang/rust

Branch: main · 9 May 2026 at 22:35

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
hub_shadow
compiler/rustc_resolve/src/def_collector.rs
6 commits
dir rank
#4
co_change rank
#29
gap
25
hub_shadow
compiler/rustc_resolve/src/diagnostics.rs
10 commits
dir rank
#1
co_change rank
#21
gap
20
hub_shadow
compiler/rustc_session/src/config.rs
11 commits
dir rank
#11
co_change rank
#1
gap
10
hub_shadow
compiler/rustc_middle/src/dep_graph/graph.rs
10 commits
dir rank
#12
co_change rank
#2
gap
10
hub_shadow

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)

#Filehub scorecommitsarchetype
1lib.rs1.10349universal_hub
2diagnostics.rs1.069010hub_shadow
3lang_items.rs1.06908universal_hub
4context.rs1.06908universal_hub
5impls_ty.rs1.06908
6layout.rs1.06908
7hir.rs1.06907
8stable_hash_impls.rs1.06907
9build_reduced_graph.rs1.06906hub_shadow
10def_collector.rs1.06906hub_shadow
11config.rs1.034511hub_shadow
12graph.rs1.034510hub_shadow
13options.rs1.034510
14symbol.rs1.034510
15int_macros.rs1.03458
16uint_macros.rs1.03458
17dep_node.rs1.03457
18def_id.rs1.03457
19aot.rs1.00007
20lib.rs1.00007
21lib.rs1.00007
22keys.rs1.00006
23stable_hasher.rs1.00006
24qualifs.rs0.96558
25lib.rs0.96557
26link.rs0.96557
27tests.rs0.96557
28mod.rs0.96556
29mod.rs0.96556
30ich.rs0.68976