01Overview
rust · 3,892,125 lines of actual code
Line Composition
4,984,582 total lines
Code3,892,12578.1%
Blank435,5108.7%
Comments656,94713.2%
Reading rust-lang/rust via an LLM
~27.2M tokens
→
~1.4k tokens
via code_analyze
The entire repo summarised by code_analyze — structured JSON in <2k tokens. The dossier above is built from one call. Drill into specifics with code_search.
02Languages & Tech Stack
what it’s written in, what it depends on
Language Breakdown
Language
Files
Code
Share
03Notable Files
where complexity and size live
Most Complex
| File | Lines | Cx |
| tests/ui/expr/if/expr-stack-overflow.rs | 10,416 | 15,615 |
| library/stdarch/crates/core_arch/src/aarch64/sve/ld_st_tests_aarch64.rs | 11,227 | 1,190 |
| compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs | 5,712 | 1,132 |
| src/librustdoc/html/static/js/search.js | 4,160 | 863 |
| compiler/rustc_resolve/src/late/diagnostics.rs | 3,952 | 844 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,456 | 818 |
| compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs | 3,969 | 795 |
| compiler/rustc_parse/src/parser/expr.rs | 3,597 | 746 |
| src/etc/completions/x.py.sh | 5,270 | 732 |
| src/etc/completions/x.sh | 5,270 | 732 |
Largest
| File | Lines | Cx |
| library/stdarch/intrinsics_data/arm_intrinsics.json | 318,945 | 0 |
| src/doc/rustc-dev-guide/src/queries/example-0.html | 313,328 | 0 |
| library/stdarch/intrinsics_data/x86-intel.xml | 158,323 | 0 |
| library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs | 71,126 | 241 |
| library/stdarch/crates/core_arch/src/x86/avx512f.rs | 48,191 | 247 |
| library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs | 44,947 | 27 |
| library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs | 31,516 | 242 |
| library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs | 23,871 | 190 |
| library/stdarch/crates/core_arch/src/x86/avx512fp16.rs | 19,213 | 68 |
| library/stdarch/crates/core_arch/src/x86/avx512bw.rs | 18,025 | 73 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
Modernization 4
accessibility 482
concurrency 1
correctness 55308
maintainability 12277
performance 3441
safety 23215
security 253
Top Findings
Ensure functions have docstrings for documentation ×4
Use 'with open()' to ensure Files are properly closed
05Secrets & Credentials
pattern-based scan for hardcoded secrets
06Search This Repo
live, powered by code_search
Scan another repository
Drop any public git URL or owner/repo shorthand.
Or compare rust-lang/rust against another repo:
Or use the API directly: curl https://api.searchcode.com/api/v1/code_analyze · Add to your MCP client