01Overview
rust · 893,210 lines of actual code
Line Composition
1,151,386 total lines
Code893,21077.6%
Blank89,8347.8%
Comments168,34214.6%
Reading rust-lang/rust via an LLM
~6.3M 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,854 | 1,163 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,494 | 831 |
| compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs | 3,245 | 714 |
| compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs | 3,320 | 547 |
| compiler/rustc_hir_typeck/src/expr.rs | 3,189 | 489 |
| compiler/rustc_middle/src/ty/print/pretty.rs | 2,928 | 481 |
| compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs | 2,784 | 478 |
| compiler/rustc_hir_typeck/src/pat.rs | 2,583 | 406 |
| compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs | 2,065 | 399 |
| compiler/rustc_codegen_llvm/src/intrinsic.rs | 2,716 | 393 |
Largest
| File | Lines | Cx |
| src/doc/rustc-dev-guide/src/queries/example-0.html | 313,328 | 0 |
| RELEASES.md | 14,049 | 0 |
| src/tools/clippy/CHANGELOG.md | 6,412 | 0 |
| compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs | 5,854 | 1,163 |
| compiler/rustc_hir_typeck/src/method/suggest.rs | 4,494 | 831 |
| compiler/rustc_hir/src/hir.rs | 3,706 | 298 |
| compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs | 3,320 | 547 |
| compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs | 3,245 | 714 |
| compiler/rustc_hir_typeck/src/expr.rs | 3,189 | 489 |
| src/ci/docker/host-x86_64/armhf-gnu/vexpress_config | 3,018 | 0 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
accessibility 66
correctness 11362
maintainability 1733
performance 724
safety 4841
security 32
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