about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-07-03Auto merge of #3726 - TDecking:vzero, r=RalfJungbors-0/+16
Implement the `_mm256_zeroupper` and `_mm256_zeroall` intrinsics These two intrinsics were missing from the original implementation of the AVX intrinsics. Fortunately their implementation is trivial.
2024-07-03Small `run-make-support` API improvementsGuillaume Gomez-3/+6
2024-07-03Implement the `_mm256_zeroupper` and `_mm256_zeroall` intrinsicsTobias Decking-0/+16
2024-07-03Auto merge of #17536 - Veykril:syntax-diags, r=Veykrilbors-1/+8
fix: Don't emit semantic diagnostics in files with a lot of syntax errors These will only add to the noise when something very unexpected breaks or where parser recovery fails to kick in.
2024-07-03fix: Don't emit semantic diagnostics in files with a lot of syntax errorsLukas Wirth-1/+8
2024-07-03Fix up the syntax tree for macro 2.0Lukas Wirth-161/+218
2024-07-03Auto merge of #127261 - jhpratt:rollup-cpoayvr, r=jhprattbors-1/+1
Rollup of 8 pull requests Successful merges: - #123588 (Stabilize `hint::assert_unchecked`) - #126403 (Actually report normalization-based type errors correctly for alias-relate obligations in new solver) - #126917 (Disable rmake test `inaccessible-temp-dir` on riscv64) - #127115 (unreferenced-used-static: run test everywhere) - #127204 (Stabilize atomic_bool_fetch_not) - #127239 (remove unnecessary ignore-endian-big from stack-overflow-trait-infer …) - #127245 (Add a test for `generic_const_exprs`) - #127246 (Give remote-test-client a longer timeout) r? `@ghost` `@rustbot` modify labels: rollup
2024-07-03Rollup merge of #127246 - ↵Jacob Pratt-1/+1
ferrocene:hoverbear/remote-test-client-has-longer-timeout, r=Mark-Simulacrum Give remote-test-client a longer timeout In https://github.com/rust-lang/rust/pull/126959, ``@Mark-Simulacrum`` suggested we simply extend the timeout of the `remote-test-client` instead of making it configurable. This is acceptable for my use case. I'm doing some work with a remote host running tests using `x.py`'s remote test runner system. After building the `remote-test-server` with: ```bash ./x build src/tools/remote-test-server --target aarch64-unknown-linux-gnu ``` I can transfer the `remote-test-server` to the remote and set up a port forwarded SSH connection, then I run: ```bash TEST_DEVICE_ADDR=127.0.0.1:12345 ./x.py test library/core --target aarch64-unknown-linux-gnu ``` This works great if the host is nearby, however if the average round trip time is over 100ms (the timeout), it creates problems as it silently trips the timeout. This PR extends that timeout to a less strict 2s. r? ``@Mark-Simulacrum``
2024-07-03Skip match exhaustiveness checking if pattern type contains errorsLukas Wirth-0/+3
2024-07-02Update cargoWeihang Lo-0/+0
2024-07-02Instance::resolve -> Instance::try_resolve, and other nitsMichael Goulet-4/+4
2024-07-02Miri function identity hack: account for possible inliningRalf Jung-2/+4
2024-07-02Auto merge of #3707 - adwinwhite:dup, r=RalfJungbors-8/+72
Add syscall `dup()` for unix target Add support for `dup()` and `dup2()`. Fixes #3454
2024-07-02use let-else to avoid rightwards driftRalf Jung-24/+21
2024-07-02Give remote-test-client a longer timeoutAna Hobden-1/+1
2024-07-02Rollup merge of #127230 - hattizai:patch01, r=saethlinMatthias Krüger-3/+3
chore: remove duplicate words remove duplicate words in comments to improve readability.
2024-07-02Rollup merge of #127136 - compiler-errors:coroutine-closure-env-shim, r=oli-obkMatthias Krüger-9/+18
Fix `FnMut::call_mut`/`Fn::call` shim for async closures that capture references I adjusted async closures to be able to implement `Fn` and `FnMut` *even if* they capture references, as long as those references did not need to borrow data from the closure captures themselves. See #125259. However, when I did this, I didn't actually relax an assertion in the `build_construct_coroutine_by_move_shim` shim code, which builds the `Fn`/`FnMut`/`FnOnce` implementations for async closures. Therefore, if we actually tried to *call* `FnMut`/`Fn` on async closures, it would ICE. This PR adjusts this assertion to ensure that we only capture immutable references in closures if they implement `Fn`/`FnMut`. It also adds a bunch of tests and makes more of the async-closure tests into `build-pass` since we often care about these tests actually generating the right closure shims and stuff. I think it might be excessive to *always* use build-pass here, but 🤷 it's not that big of a deal. Fixes #127019 Fixes #127012 r? oli-obk
2024-07-02rewrite test-harness to rmakeOneirical-3/+1
2024-07-02rewrite and rename issue-47384 to rmakeOneirical-1/+0
2024-07-02rewrite rlib-chain to rmakeOneirical-1/+0
2024-07-02rewrite dylib-chain to rmakeOneirical-1/+0
2024-07-02Move lifetimes in front of type and const params but after selfLukas Wirth-124/+120
2024-07-02Make GenericParams::lifetimes privateLukas Wirth-14/+12
2024-07-02Make GenericParams::where_predicates privateLukas Wirth-8/+12
2024-07-02Make GenericParams::type_or_consts privateLukas Wirth-233/+239
2024-07-02Fix lifetime parameters moving paramter defaultsLukas Wirth-68/+113
2024-07-02Auto merge of #3724 - bjorn3:use_symbol_name_query, r=RalfJungbors-26/+3
Use the symbol_name query instead of trying to infer from the link_name attribute This prevents the calculated name from going out of sync with exported_symbols. It also avoids having to special case the panic_impl lang item. It also makes it easier to fix miri with https://github.com/rust-lang/rust/pull/127173.
2024-07-02Allow _Unwind_RaiseException with MinGWbjorn3-0/+16
2024-07-02Merge from rustcRalf Jung-47/+258
2024-07-02Preparing for merge from rustcRalf Jung-1/+1
2024-07-02chore: remove duplicate wordshattizai-3/+3
2024-07-01Auto merge of #126941 - GuillaumeGomez:migrate-run-make-llvm-ident, r=Kobzolbors-1/+7
Migrate `run-make/llvm-ident` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@Kobzol` try-job: armhf-gnu
2024-07-01Rollup merge of #127201 - GuillaumeGomez:improve-run-make-support, r=KobzolGuillaume Gomez-9/+17
Improve run-make-support API I think I'll slowly continue this work. Makes things a bit nicer for contributors, so why not. :D r? ``@Kobzol``
2024-07-01Rollup merge of #126880 - Rejyr:migrate-rmake-vw, r=KobzolGuillaume Gomez-4/+0
Migrate `volatile-intrinsics`, `weird-output-filenames`, `wasm-override-linker`, `wasm-exceptions-nostd` to `rmake` Also refactors `wasm-abi` and `compressed-debuginfo`. Part of #121876. r? ``@jieyouxu`` try-job: x86_64-gnu-debug try-job: dist-various-2
2024-07-01Use the symbol_name query instead of trying to infer from the link_name ↵bjorn3-26/+3
attribute This prevents the calculated name from going out of sync with exported_symbols. It also avoids having to special case the panic_impl lang item.
2024-07-02squash.Shohei Wada-11/+233
2024-07-01clippy: update to pulldown-cmark 0.11Michael Howell-16/+16
2024-07-01add syscall `dup()`Adwin White-0/+67
2024-07-01Migrate `run-make/llvm-ident` to `rmake.rs`Guillaume Gomez-1/+0
2024-07-01Add `input_file` method on `LlvmFileCheck`Guillaume Gomez-0/+7
2024-07-01Improve error message when the proc-macro server unexpectedly exitsLukas Wirth-37/+79
2024-07-01Auto merge of #17495 - listochkin:pass-cargo-extra-args-for-debugger, r=Veykrilbors-2/+3
pass cargo extra args when debugging fixes #17128
2024-07-01Auto merge of #17494 - harrysarson:harry/keep-braces, r=Veykrilbors-4/+79
do not normalize `use foo::{self}` to `use foo` It changes behaviour and can cause collisions. E.g. for the following snippet ```rs mod foo { pub mod bar {} pub const bar: i32 = 8; } // transforming the below to `use foo::bar;` causes the error: // // the name `bar` is defined multiple times use foo::bar::{self}; const bar: u32 = 99; fn main() { let local_bar = bar; } ``` we still normalize ```rs use foo::bar; use foo::bar::{self}; ``` to `use foo::bar;` because this cannot cause collisions. See: https://github.com/rust-lang/rust-analyzer/pull/17140#issuecomment-2079189725
2024-07-01Improve `target` method API in `run-make-support`Guillaume Gomez-2/+4
2024-07-01Improve `run-make-support` API for `assert*` functionsGuillaume Gomez-7/+13
2024-07-01Auto merge of #17522 - Veykril:comptimes, r=Veykrilbors-116/+107
internal: Cut compiletimes slightly
2024-06-30rustdoc: update to pulldown-cmark 0.11Michael Howell-0/+1
2024-06-30Bump rustc_pattern_analysisLukas Wirth-92/+76
2024-06-30Rollup merge of #127161 - GuillaumeGomez:improve-run-make-args, r=KobzolMatthias Krüger-2/+3
Improve `run-make-support` library `args` API It allows to pass both `Vec` and slices, which makes it much better (for me at least :wink:). r? ``@Kobzol``
2024-06-30Rollup merge of #126018 - nnethercote:rm-box_pointers-lint, r=lcnrMatthias Krüger-1/+0
Remove the `box_pointers` lint. As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around. r? ``@estebank``