-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 9 pull requests #126240
Rollup of 9 pull requests #126240
Conversation
I found these by setting the `unused_crate_dependencies` lint temporarily to `Warn`.
…r=jackh726 Remove some unused crate dependencies. I found these by setting the `unused_crate_dependencies` lint temporarily to `Warn`. r? ``@jackh726``
…-result, r=compiler-errors Fix ICE due to `unwrap` in `probe_for_name_many` Fixes rust-lang#125876 Now `probe_for_name_many` bubbles up the error returned by `probe_op` instead of calling `unwrap` on it.
…r=oli-obk ScalarInt: size mismatches are a bug, do not delay the panic Cc [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/146212-t-compiler.2Fconst-eval/topic/Why.20are.20ScalarInt.20to.20iN.2FuN.20methods.20fallible.3F) r? ``@oli-obk``
…=oli-obk interpret: do not ICE on padded non-pow2 SIMD vectors Fixes rust-lang/miri#3458 r? ``@oli-obk``
Fix `NonZero` doctest inconsistencies <!-- If this PR is related to an unstable feature or an otherwise tracked effort, please link to the relevant tracking issue here. If you don't know of a related tracking issue or there are none, feel free to ignore this. This PR will get automatically assigned to a reviewer. In case you would like a specific user to review your work, you can assign it to them by using r? <reviewer name> --> `NonZero`'s doctests contain both `?` and `.unwrap()` with no obvious reason for the difference, so this changes all of them to `?`. Also removes an explicit `std::num::NonZero`.
…=jieyouxu migrate tests/run-make/llvm-outputs to use rmake.rs part of rust-lang#121876 <!-- If this PR is related to an unstable feature or an otherwise tracked effort, please link to the relevant tracking issue here. If you don't know of a related tracking issue or there are none, feel free to ignore this. This PR will get automatically assigned to a reviewer. In case you would like a specific user to review your work, you can assign it to them by using r? <reviewer name> -->
fix: build on haiku ## What does this PR do The std is broken on haiku, this PR fixes it. ## To reproduce the issue ```sh $ cargo +nightly --version cargo 1.81.0-nightly (b1feb75d0 2024-06-07) $ cargo new hello $ cd hello $ cargo +nightly check -Zbuild-std --target x86_64-unknown-haiku -q error[E0433]: failed to resolve: use of undeclared crate or module `std` --> ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/os.rs:468:13 | 468 | std::ptr::null_mut(), | ^^^ use of undeclared crate or module `std` | help: consider importing one of these items | 8 + use core::ptr; | 8 + use crate::ptr; | help: if you import `ptr`, refer to it directly | 468 - std::ptr::null_mut(), 468 + ptr::null_mut(), | error[E0433]: failed to resolve: use of undeclared crate or module `std` --> ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/os.rs:470:13 | 470 | std::ptr::null_mut(), | ^^^ use of undeclared crate or module `std` | help: consider importing one of these items | 8 + use core::ptr; ```
…lcnr Add explanatory note to async block type mismatch error The async block type mismatch error might leave the user wondering as to why it occurred. The new note should give them the needed context. Changes this diagnostic: ``` error[E0308]: mismatched types --> src/main.rs:5:23 | 2 | let a = async { 1 }; | ----------- the expected `async` block 3 | let b = async { 2 }; | ----------- the found `async` block 4 | 5 | let bad = vec![a, b]; | ^ expected `async` block, found a different `async` block | = note: expected `async` block `{async block@src/main.rs:2:13: 2:24}` found `async` block `{async block@src/main.rs:3:13: 3:24}` ``` to this: ``` error[E0308]: mismatched types --> src/main.rs:5:23 | 2 | let a = async { 1 }; | ----------- the expected `async` block 3 | let b = async { 2 }; | ----------- the found `async` block 4 | 5 | let bad = vec![a, b]; | ^ expected `async` block, found a different `async` block | = note: expected `async` block `{async block@src/main.rs:2:13: 2:24}` found `async` block `{async block@src/main.rs:3:13: 3:24}` = note: no two async blocks, even if identical, have the same type = help: consider pinning your async block and and casting it to a trait object ``` Fixes rust-lang#125737
…test, r=Kobzol run-make: add `run_in_tmpdir` self-test Add a basic sanity test for `run_in_tmpdir` to make sure that files (including read-only files) and directories created inside the "scratch" tmpdir are removed after the closure returns. r? ghost (while i run a try job) try-job: x86_64-msvc
@bors r+ rollup=never p=9 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR:
previous master: d402830c8a In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (b5b1356): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (primary -2.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 673.509s -> 673.568s (0.01%) |
Successful merges:
unwrap
inprobe_for_name_many
#126115 (Fix ICE due tounwrap
inprobe_for_name_many
)NonZero
doctest inconsistencies #126191 (FixNonZero
doctest inconsistencies)run_in_tmpdir
self-test #126223 (run-make: addrun_in_tmpdir
self-test)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup