about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-04-16Improve `borrowck_graphviz_*` documentation.Nicholas Nethercote-1/+2
In particular, `borrowck_graphviz_preflow` no longer exists.
2025-04-15Update Cargo.lock for rustbookEric Huss-0/+10
2025-04-16Rename `LifetimeName` as `LifetimeKind`.Nicholas Nethercote-17/+17
It's a much better name, more consistent with how we name such things. Also rename `Lifetime::res` as `Lifetime::kind` to match. I suspect this field used to have the type `LifetimeRes` and then the type was changed but the field name remained the same.
2025-04-15Update booksrustbot-0/+0
2025-04-15Perform PGO for aarch64 buildsJakub Beránek-2/+3
2025-04-15normalize canonical and non-canonical paths in compiletestWaffle Lapkin-5/+8
Apparently there are tests that print canonical paths *and* tests which print non-canonical paths. An example of the latter is `tests/ui/type_length_limit.rs`.
2025-04-15commit rustfmt stump in `x t tidy` even on `check`Waffle Lapkin-3/+6
If checking succeeded, it's equivalent to successfully formatting.
2025-04-15Rollup merge of #139859 - marcoieni:rename-macos-runner, r=KobzolMatthias Krüger-6/+6
CI: rename MacOS runner r? ``@Kobzol``
2025-04-15Rollup merge of #138455 - yotamofek:pr/rustdoc/more-impl-display, ↵Matthias Krüger-230/+228
r=GuillaumeGomez `librustdoc`: more `impl fmt::Display` Continuation of #137425 and #136828 and #136784 Working towards getting rid of the `write_str` helper r? `@GuillaumeGomez` (if you want!)
2025-04-16feat: enhance signature help to display generic parameters for callables and ↵roifewu-13/+154
default values for generic args
2025-04-15Use PGO on Linux x64 buildsJakub Beránek-0/+1
2025-04-15Merge pull request #19585 from Kobzol/pgo-windowsLaurențiu Nicola-11/+53
Allow training PGO on a custom crate and enable it Windows on CI
2025-04-15add comment in `TomlConfig::merge` about the merge orderonur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15Replace flag `--doctest-compilation-args` with a simpler one: ↵León Orell Valerian Liehr-71/+7
`--doctest-build-arg` More notably, the value of the new flag does *not* get lexed shell-like and ad hoc.
2025-04-15Use `manylinux` Docker container instead of zigbuild for x64 LinuxJakub Beránek-1/+9
This gets us glibc 2.28 without using `cargo zigbuild`, which is not compatible with PGO.
2025-04-15add a comment for code that isn'tWaffle Lapkin-1/+7
2025-04-15slightly correct comments and diagnostics about checking modificationsWaffle Lapkin-10/+13
I feel like they are still wrong, but maybe less so .-. The `info:` was unhelpful -- we only use upstream in CI nowdays.
2025-04-15use helper function instead of writing rustfmt stamp by handWaffle Lapkin-1/+2
2025-04-15tidy: don't crush on non-existent submodulesWaffle Lapkin-1/+3
2025-04-15Merge pull request #4260 from CraftSpider/windows-file-deleteOli Scherer-5/+46
Implement file deletion on Windows
2025-04-15Rename `is_builder_target` to `is_host_target`Jakub Beránek-19/+18
2025-04-15Move `is_builder_target`, `is_system_llvm` and `is_rust_llvm` from `Builder` ↵Jakub Beránek-53/+57
to `Config`
2025-04-15Add `explicit_extern_abis` unstable featureObei Sideg-0/+23
also add `explicit-extern-abis` feature section to the unstable book.
2025-04-15Use `-q` to silence RA outputJakub Beránek-3/+1
2025-04-15CI: rename MacOS runnerMarcoIeni-6/+6
2025-04-15Run PGO for Windows on CIJakub Beránek-0/+2
2025-04-15Allow passing a specific crate for PGO trainingJakub Beránek-10/+52
2025-04-15Fix `llvm-profdata` extension on non Linux OSesJakub Beránek-1/+1
2025-04-15add FIXME note in `TomlConfig::merge`onur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15fix path and the ordering logiconur-ozkan-26/+28
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15apply nit notesonur-ozkan-26/+69
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15document `include` in `bootstrap.example.toml`onur-ozkan-2/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15implement cyclic inclusion handlingonur-ozkan-13/+38
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15document config extensionsonur-ozkan-0/+36
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15add new config option: `include`onur-ozkan-1/+29
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15Auto merge of #139845 - Zalathar:rollup-u5u5y1v, r=Zalatharbors-230/+750
Rollup of 17 pull requests Successful merges: - #138374 (Enable contracts for const functions) - #138380 (ci: add runners for vanilla LLVM 20) - #138393 (Allow const patterns of matches to contain pattern types) - #139517 (std: sys: process: uefi: Use NULL stdin by default) - #139554 (std: add Output::exit_ok) - #139660 (compiletest: Add an experimental new executor to replace libtest) - #139669 (Overhaul `AssocItem`) - #139671 (Proc macro span API redesign: Replace proc_macro::SourceFile by Span::{file, local_file}) - #139750 (std/thread: Use default stack size from menuconfig for NuttX) - #139772 (Remove `hir::Map`) - #139785 (Let CStrings be either 1 or 2 byte aligned.) - #139789 (do not unnecessarily leak auto traits in item bounds) - #139791 (drop global where-bounds before merging candidates) - #139798 (normalize: prefer `ParamEnv` over `AliasBound` candidates) - #139822 (Fix: Map EOPNOTSUPP to ErrorKind::Unsupported on Unix) - #139833 (Fix some HIR pretty-printing problems) - #139836 (Basic tests of MPMC receiver cloning) r? `@ghost` `@rustbot` modify labels: rollup
2025-04-15canonicalize test build dir before normalizing itWaffle Lapkin-1/+5
Fix fixes failures of the following tests when build directory is a symlink: - `tests/ui/error-codes/E{0464,0523}.rs` - `tests/ui/crate-loading/crateresolve{1,2}.rs` (those are the same tests)
2025-04-15fix typoWaffle Lapkin-1/+1
2025-04-15update submodules if the directory doesn't existWaffle Lapkin-0/+7
2025-04-15unstable book; document `macro_metavar_expr_concat`mejrs-0/+145
2025-04-14Setup editor file associations for non-rs extensionsThalia Archibald-11/+23
.gitattributes lists *.fixed, *.pp, and *.mir as file extensions which should be treated as Rust source code. Do the same for VS Code and Zed. This only does syntax highlighting, which is appropriate, as MIR isn't really Rust code. At the same time, consistently order `rust-analyzer.linkedProjects` between editors. For some reason, Eglot didn't include library/Cargo.toml.
2025-04-15Rollup merge of #139772 - nnethercote:rm-hir-Map, r=ZalatharStuart Cook-25/+19
Remove `hir::Map` A follow-up to https://github.com/rust-lang/rust/pull/139232. r? `@Zalathar`
2025-04-15Rollup merge of #139671 - m-ou-se:proc-macro-span, r=dtolnayStuart Cook-38/+15
Proc macro span API redesign: Replace proc_macro::SourceFile by Span::{file, local_file} Simplification/redesign of the unstable proc macro span API, tracked in https://github.com/rust-lang/rust/issues/54725: Before: ```rust impl Span { pub fn line(&self) -> usize; pub fn column(&self) -> usize; pub fn source_file(&self) -> SourceFile; } #[derive(Clone, Debug, PartialEq, Eq)] pub struct SourceFile { .. } impl !Send for SourceFile {} impl !Sync for SourceFile {} impl SourceFile { pub fn path(&self) -> PathBuf; pub fn is_real(&self) -> bool; } ``` After: ```rust impl Span { pub fn line(&self) -> usize; pub fn column(&self) -> usize; pub fn file(&self) -> String; // Mapped file name, for display purposes. pub fn local_file(&self) -> Option<PathBuf>; // Real file name as it exists on disk. } ``` This resolves the last blocker for stabilizing these methods. (Stabilizing will be a separate PR with FCP.)
2025-04-15Rollup merge of #139669 - nnethercote:overhaul-AssocItem, r=oli-obkStuart Cook-50/+48
Overhaul `AssocItem` `AssocItem` has multiple fields that only make sense some of the time. E.g. the `name` can be empty if it's an RPITIT associated type. It's clearer and less error prone if these fields are moved to the relevant `kind` variants. r? ``@fee1-dead``
2025-04-15Rollup merge of #139660 - Zalathar:new-executor, r=jieyouxuStuart Cook-117/+574
compiletest: Add an experimental new executor to replace libtest This PR adds a new "executor" to compiletest for running the list of collected tests, to eventually replace the current dependency on unstable libtest internals. The new executor is currently inactive by default. It must be activated explicitly by passing `-n` or `--new-executor` to compiletest, e.g. `./x test ui -- -n`. (After some amount of wider manual testing, the new executor will hopefully be made the default, and the libtest dependency can be removed. Contributors should not notice any change.) The new executor is a stripped-down rewrite of the subset of libtest needed by compiletest. # Supported functionality - Specifying the number of concurrent tests with `RUST_TEST_THREADS` - Filtering and skipping tests by name (substring or exact-match) - Forcibly running ignored tests with `--ignored` - Optional fail-fast with `--fail-fast` - JSON output, compatible with bootstrap's parser for libtest output - Running each test in its own thread - Short backtraces that ignore the executor itself - Slow test detection, with a hard-coded timeout of 60 seconds - Capturing stdout/stderr, via `#![feature(internal_output_capture)]` - Suppressing output capture with `--no-capture` # Unsupported functionality - Non-JSON output, as this is handled by bootstrap instead - Separate code path for concurrency=1, as the concurrent path should handle this case naturally - Fallback to running tests synchronously if new threads can't be spawned - Special handling of hosts that don't support basic functionality like threads or timers - Our ability to test *targets* should be unaffected - Graceful handling of some edge cases that could occur in arbitrary user-written unit tests, but would represent bugs in compiletest - Due to the current need for output capture, the new executor is still not entirely written in stable Rust --- r? jieyouxu
2025-04-15Avoid using `kw::Empty` for param names in rustdoc.Nicholas Nethercote-8/+11
2025-04-15Avoid using `kw::Empty` when comparing names.Nicholas Nethercote-4/+7
2025-04-15Avoid another `kw::Empty` use.Nicholas Nethercote-1/+1
`sym::dummy` also appears to work.
2025-04-15Remove another `kw::Empty` use in rustdoc.Nicholas Nethercote-23/+31
Again by using `Option<Symbol>` to represent "no name".
2025-04-15feat: Add `pub(crate) mod` option for unlinked filesroifewu-0/+18