about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-08-14Be more resilient to bad language item definitions in binop inferenceLaurențiu Nicola-9/+45
2024-08-14Implement epoll shimtiif-75/+1134
2024-08-14stabilize `is_none_or`Slanterns-1/+0
2024-08-14Auto merge of #129060 - matthiaskrgr:rollup-s72gpif, r=matthiaskrgrbors-6/+4
Rollup of 7 pull requests Successful merges: - #122884 (Optimize integer `pow` by removing the exit branch) - #127857 (Allow to customize `// TODO:` comment for deprecated safe autofix) - #129034 (Add `#[must_use]` attribute to `Coroutine` trait) - #129049 (compiletest: Don't panic on unknown JSON-like output lines) - #129050 (Emit a warning instead of an error if `--generate-link-to-definition` is used with other output formats than HTML) - #129056 (Fix one usage of target triple in bootstrap) - #129058 (Add mw back to review rotation) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-7/+5
This lets us compare a `Token` with a `TokenKind`. It's used a lot, but can be used even more, avoiding the need for some `.kind` uses.
2024-08-14CI: need nightly toolchain for auto-rustup PRRalf Jung-0/+2
2024-08-14fmtRalf Jung-1/+1
2024-08-14Merge from rustcRalf Jung-2542/+4055
2024-08-14Preparing for merge from rustcRalf Jung-1/+1
2024-08-14Auto merge of #17885 - Wilfred:op_queue_docs, r=lnicolabors-0/+20
minor: Add a doc comment for OpQueue Add an explanatory sentence and some sample code to help readers understand why this struct exists.
2024-08-14Auto merge of #129076 - matthiaskrgr:rollup-rg8mi2x, r=matthiaskrgrbors-4/+34
Rollup of 6 pull requests Successful merges: - #128410 (Migrate `remap-path-prefix-dwarf` `run-make` test to rmake) - #128759 (alloc: add ToString specialization for `&&str`) - #128873 (Add windows-targets crate to std's sysroot) - #129001 (chore(lib): Enhance documentation for core::fmt::Formatter's write_fm…) - #129061 (Use `is_lang_item` more) - #129062 (Remove a no-longer-true assert) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-14Rollup merge of #128873 - ChrisDenton:windows-targets, r=Mark-SimulacrumMatthias Krüger-1/+1
Add windows-targets crate to std's sysroot With this PR, when backtrace is used as a crate from crates.io it will (once updated) use the real [windows-targets](https://crates.io/crates/windows-targets) crate. But when used from std it'll use std's replacement version. This allows sharing our customized `windows_tagets::link!` macro between std proper and the backtrace crate when used as part of std, ensuring a consistent linking story. This will be especially important once we move to using [`raw-dylib`](https://doc.rust-lang.org/reference/items/external-blocks.html#dylib-versus-raw-dylib) by default.
2024-08-14Rollup merge of #128410 - Oneirical:dwarf-fortestress, r=jieyouxuMatthias Krüger-3/+33
Migrate `remap-path-prefix-dwarf` `run-make` test to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Possibly my proudest branch name yet. try-job: aarch64-apple try-job: armhf-gnu try-job: test-various try-job: x86_64-gnu-llvm-18
2024-08-14Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errorsbors-13/+13
Shrink `TyKind::FnPtr`. By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI. r? `@compiler-errors`
2024-08-14Port `run-make/sysroot-crates-are-unstable` to rmakeZalathar-1/+0
2024-08-14Promote Mac Catalyst targets to tier 2, and ship with rustupMads Marquart-0/+2
- aarch64-apple-ios-macabi - x86_64-apple-ios-macabi
2024-08-13docs: Add a doc comment for OpQueueWilfred Hughes-0/+20
Add an explanatory sentence and some sample code to help readers understand why this struct exists.
2024-08-13Update cargoWeihang Lo-0/+0
2024-08-13Rollup merge of #129049 - Zalathar:json-like, r=jieyouxuMatthias Krüger-6/+4
compiletest: Don't panic on unknown JSON-like output lines The `json::extract_rendered` function is called for both compiler output and non-compiler output, so it's inappropriate to panic just because a line starting with `{` didn't contain a compiler output message. It is called from two places: when checking the output of a `ui` test process, and when printing the output of an arbitrary non-passing `ProcRes`. So unfortunately there's currently no easy way to know for sure whether it is seeing compiler output or not. Fortunately, neither call site appears to be relying on this panic; it's just an overzealous internal check. Fixes #126373.
2024-08-13Auto merge of #3802 - RalfJung:no-more-call-id, r=RalfJungbors-102/+46
Borrow tracking: remove the concept of a call ID Turns out this is not needed any more ever since we started tracking the `protected_tags` list in the per-frame state. Also thanks to `@JoJoDeveloping` for inspiring me to even consider this possibility. :)
2024-08-13remove the concept of a Call IDRalf Jung-98/+40
2024-08-13Merge from rust-lang/rustLaurențiu Nicola-5812/+9164
2024-08-13Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2024-08-13Bump `rustc_pattern_analysis`Shoyu Vanilla-32/+30
2024-08-13Temporarily remove non-working test caseShoyu Vanilla-12/+2
2024-08-13feat: `min-exhaustive-patternsShoyu Vanilla-15/+131
2024-08-13borrow_tracker: update comments regarding protectorsRalf Jung-4/+6
2024-08-13Remove a confusing commentZalathar-1/+0
The JSON messages parsed by this file are from the _compiler_, not from libtest.
2024-08-13Don't panic on unknown JSON-like output linesZalathar-5/+4
This function is called for both compiler and non-compiler output, so if the line isn't recognized as JSON from the compiler then just print it as-is.
2024-08-13Rollup merge of #129040 - Zalathar:bless-rmake, r=jieyouxuMatthias Krüger-24/+31
Fix blessing of rmake tests Fixes #129038. When running in `--bless` mode, we now set the value of `RUSTC_BLESS_TEST` to the current test's source directory. This allows the diff helper in `run_make_support` to find the original snapshot file in the source directory and bless that, instead of unhelpfully blessing the temporary copy in `build`. r? `@jieyouxu`
2024-08-13Auto merge of #17876 - Veykril:semantics-include-simplify, r=Veykrilbors-88/+18
internal: Remove unreachable logic for include token mapping Turns out https://github.com/rust-lang/rust-analyzer/pull/17863 made this obsolete 🎉
2024-08-13Remove unreachable logic for include token mappingLukas Wirth-88/+18
2024-08-13Fix blessing of rmake testsZalathar-12/+16
2024-08-13Extract a helper method for blessing in `Diff`Zalathar-16/+19
2024-08-13Auto merge of #17867 - ShoyuVanilla:issue-17854, r=Veykrilbors-2/+27
fix: Trailing excess comma in "Convert to named struct" assist Fixes #17854
2024-08-13Auto merge of #128742 - RalfJung:miri-vtable-uniqueness, r=saethlinbors-7/+63
miri: make vtable addresses not globally unique Miri currently gives vtables a unique global address. That's not actually matching reality though. So this PR enables Miri to generate different addresses for the same type-trait pair. To avoid generating an unbounded number of `AllocId` (and consuming unbounded amounts of memory), we use the "salt" technique that we also already use for giving constants non-unique addresses: the cache is keyed on a "salt" value n top of the actually relevant key, and Miri picks a random salt (currently in the range `0..16`) each time it needs to choose an `AllocId` for one of these globals -- that means we'll get up to 16 different addresses for each vtable. The salt scheme is integrated into the global allocation deduplication logic in `tcx`, and also used for functions and string literals. (So this also fixes the problem that casting the same function to a fn ptr over and over will consume unbounded memory.) r? `@saethlin` Fixes https://github.com/rust-lang/miri/issues/3737
2024-08-13Port `run-make/libtest-junit` to rmakeZalathar-1/+0
2024-08-13Port `run-make/libtest-json` to rmakeZalathar-1/+0
2024-08-13Auto merge of #128868 - s7tya:port-rustc-perf-cmp-command, r=Kobzolbors-35/+81
Port rustc perf cmp command I've integrated bench_cmp and bench_local into the bootstrap. r​? `@Kobzol`
2024-08-12Allow declaring cfg groups in rust-project.json, to help sharing common cfgsChayim Refael Friedman-4/+619
2024-08-12Rollup merge of #128929 - saethlin:enable-codegen-units-tests, r=compiler-errorsGuillaume Gomez-1/+7
Fix codegen-units tests that were disabled 8 years ago I don't know if any of these tests still have value. They were disabled by https://github.com/rust-lang/rust/pull/33890, and we've survived without them for a while. But considering how small this test suite is, maybe it's worth having them. I also had to add some normalization to the codegen-units tests output. I think the fact that I had to add some underscores how poor our test coverage is.
2024-08-12fix: Trailing excess comma in "Convert to named struct" assistShoyu Vanilla-2/+27
2024-08-12rewrite remap-path-prefix-dwarf to rmakeOneirical-3/+33
2024-08-12fix: Missing non-exhaustive let diagnostics inside async or unsafe blockShoyu Vanilla-2/+46
2024-08-12Auto merge of #17864 - Veykril:lsif, r=Veykrilbors-5/+16
fix: Build and run build scripts in lsif command
2024-08-12Build and run build scripts in lsif commandLukas Wirth-5/+16
2024-08-12Add `read_dir_entries_recursive` in `run_make_support`Guillaume Gomez-0/+15
2024-08-12Auto merge of #17863 - Veykril:include-diags, r=Veykrilbors-56/+93
fix: Resolve included files to their calling modules in IDE layer Fixes https://github.com/rust-lang/rust-analyzer/issues/17390 at the expense of reporting duplicate diagnostics for modules that have includes in them when both the calling and called file are included.
2024-08-12Resolve included files to their calling modules in IDE layerLukas Wirth-56/+93
2024-08-12Auto merge of #17861 - Veykril:bump-lock, r=Veykrilbors-134/+161
minor: Bump lockfile