01Overview
rust · 999,349 lines of actual code
Line Composition
1,324,335 total lines
Code999,34975.5%
Blank105,9598.0%
Comments219,02716.5%
Reading rust-lang/rust via an LLM
~7.0M 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 |
| compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs | 5,757 | 1,142 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,494 | 831 |
| compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs | 3,265 | 716 |
| compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs | 3,265 | 529 |
| compiler/rustc_hir_typeck/src/expr.rs | 3,188 | 489 |
| compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs | 2,782 | 478 |
| compiler/rustc_hir_typeck/src/pat.rs | 2,567 | 405 |
| compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs | 2,061 | 399 |
| compiler/rustc_codegen_llvm/src/intrinsic.rs | 2,729 | 394 |
| compiler/rustc_lint/src/builtin.rs | 2,015 | 389 |
Largest
| File | Lines | Cx |
| src/doc/rustc-dev-guide/src/queries/example-0.html | 313,328 | 0 |
| RELEASES.md | 13,977 | 0 |
| src/tools/clippy/CHANGELOG.md | 6,410 | 0 |
| compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs | 5,757 | 1,142 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,494 | 831 |
| compiler/rustc_hir/src/hir.rs | 3,703 | 299 |
| library/std/src/sys/pal/windows/c/windows_sys.rs | 3,670 | 49 |
| compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs | 3,265 | 716 |
| compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs | 3,265 | 529 |
| library/coretests/tests/unicode/test_data.rs | 3,262 | 0 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
accessibility 58
correctness 13337
maintainability 1980
performance 715
safety 9392
security 37
Top Findings
Ensure functions have docstrings for documentation ×3
Use logging module for better control and configurability ×2
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