rust/src
Jonathan Brouwer c0337ca5f0
Rollup merge of #150205 - Enselic:line-no, r=Zalathar,jieyouxu
compiletest: Add `LineNumber` newtype to avoid `+1` magic here and there

Start small. If it works well we can increase usage bit by bit as time passes.

My main motivation for doing this is to get rid of the `+ 1` I otherwise have to add in https://github.com/rust-lang/rust/pull/150201 on this line:
```rs
                crate::directives::line::line_directive(file, zero_based_line_no + 1, &line)
```
But I think this is a nice general improvement by itself.

Note that we keep using "0" to represent "no specific line" because changing to `Option<LineNumber>` everywhere is a very noisy and significant change. That _can_ be changed later if wanted, but let's not do it now.
2025-12-23 12:01:01 +01:00
..
bootstrap Rollup merge of #149840 - jieyouxu:bootstrap-missing-stage0, r=Zalathar 2025-12-22 07:58:48 +01:00
build_helper Use yarn instead of npm in tidy 2025-11-17 10:58:13 +02:00
ci Rollup merge of #149734 - Kobzol:gcc-9.2.0, r=marcoieni 2025-12-16 20:21:06 +01:00
doc Nvptx: Use llbc as default linker 2025-12-19 21:39:48 +01:00
etc add a missing comma to default r-a settings file 2025-11-29 21:31:43 +00:00
gcc@0081ca6631 Update GCC submodule 2025-11-26 20:11:43 +01:00
librustdoc Auto merge of #150217 - notriddle:stringdex-0.0.4, r=yotamofek,GuillaumeGomez 2025-12-22 23:19:14 +00:00
llvm-project@00d23d10dc Update LLVM submodule 2025-12-20 09:53:08 +08:00
rustc-std-workspace Generalize branch references to HEAD 2025-11-02 11:15:55 +01:00
rustdoc-json-types rustdoc-json: add rlib path to ExternalCrate to enable robust crate resolution 2025-11-21 09:22:59 +00:00
tools Rollup merge of #150205 - Enselic:line-no, r=Zalathar,jieyouxu 2025-12-23 12:01:01 +01:00
README.md
stage0 bump stage0 2025-12-19 15:04:30 -08:00
version bump version number 2025-12-05 19:33:24 +00:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.