Repository navigation
Merge subtree update for toolchain nightly-2026-11-19 - #784
Conversation
Pull recent changes from https://github.com/rust-lang/rust via Josh. Previous upstream ref: rust-lang/rust@92b5b8c New upstream ref: rust-lang/rust@349bba6 Filtered ref: rust-lang/miri@b0b2512 Upstream diff: rust-lang/rust@92b5b8c...349bba6 This merge was created using https://github.com/rust-lang/josh-sync.
… iteration and swap with holes via mem::replace
assert_instr: add support for stricter tests
Since the starting lines are hidden, the blank lines afterwards render as leading newlines; remove them.
…r=nnethercote More derive(Debug) cleanups for structs This removes duplication from the debug helpers and unifies tuples with structs. More details in individual commits. I think this is makes the code simpler, but it's a bit of a judgement call. r? nnethercote
This updates the rust-toolchain.toml file to nightly-2026-11-02 (3e92e1a).
Pull recent changes from https://github.com/rust-lang/rust via Josh. Previous upstream ref: rust-lang/rust@52b6e2c New upstream ref: rust-lang/rust@3e92e1a Filtered ref: rust-lang/portable-simd@af90ba4 Upstream diff: rust-lang/rust@52b6e2c...3e92e1a This merge was created using https://github.com/rust-lang/josh-sync.
…bound, r=ChrisDenton Add some docs for our allocator `unstable_feature_bound`s rustdoc currently doesn't display anything about the stability of `unstable_feature_bound` impls. This makes it so people can understand how our unstable allocator impls work from the docs. r? clarfonthey
…tgross35 expand the docs of `Complex<T>` tracking issue: rust-lang#154023 Add some more documentation and examples for `Complex<T>` and its operations. E.g. for `+` the behavior is not obvious without an example. r? tgross35
add {Receiver,Sender,SyncSender}::{is_empty,len}
Tracking issue: rust-lang#165247
ACP only mentions `.len()`, but I think `is_empty()` should be added for API parity with mpmc.
…k, r=tgross35 Ensure the display impl of uXX is small with optimize_for_size Fixes rust-lang#165280 LLVM is not smart enough to elide the bounds checks here (or at least it pretends not to be when optimizing for size), so we have to hold its hand. New codegen (old codegen see issue): https://rust.godbolt.org/z/e8q3MGnh1 r? libs
…e, r=tgross35 Add example of implementing Allocator to its docs Part of [rust-lang#163232](rust-lang#163232) Adds an example In Allocator trait showing a custom allocator with live counts, forwards it to `System` and is used with `Box::new_in()`. r? @tgross35
This lint is similar to the existing `let_underscore_lock` lint, but applies to `DropGuard` instead of `MutexGuard` and similar types.
std: fix platform checks for hermit Closes rust-lang#164495. Found this while working on Hermit OS support for Rustix (bytecodealliance/rustix#1672) ```console $ cargo +nightly check -q -Zbuild-std --target x86_64-unknown-hermit error[E0425]: cannot find value `IPV6_UNICAST_HOPS` in crate `c` --> ~/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/mod.rs:534:61 | 534 | setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS, limit as c_int) | ^^^^^^^^^^^^^^^^^ not found in `c` ... error[E0425]: cannot find value `IPV6_MULTICAST_HOPS` in crate `c` --> ~/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/mod.rs:957:61 | 957 | setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS, limit as c_int) | ^^^^^^^^^^^^^^^^^^^ not found in `c` | ``` cc: @Mallets
…nathanBrouwer Rollup of 6 pull requests Successful merges: - rust-lang#163764 (Tweak suggestion of "unreachable due to never pattern") - rust-lang#164771 (std: fix platform checks for hermit) - rust-lang#165070 (create mir for direct-rhs consts) - rust-lang#165121 (test DSL evaluate sequentially) - rust-lang#165288 (Add assembly test for masked index without redundant shifts) - rust-lang#165307 (test(lexer): Add test that ZWJ/ZWNJ are accepted in identifiers)
* add TrySendError::into_inner * drop inline
…cdylib test: - Add `sys::thread_local::guard::aix` using `__pt_atexit_np` to run main thread TLS destructors on process exit on AIX. - Update `dynamic-loading-cdylib` to use member archive syntax (`RTLD_MEMBER`) for `dlopen` on AIX. - Replace the mode array in `dynamic-loading-cdylib` with a `COMMAND_ARGS` constant that selects `load_only` for musl and AIX because `dlclose` does not invoke TLS destructors on those platforms.
miri subtree update Subtree update of `miri` to rust-lang/miri@22464d9. Created using https://github.com/rust-lang/josh-sync. r? @ghost
…2, r=folkertdev portable-simd subtree update Subtree update of `portable-simd` to rust-lang/portable-simd@185237d. Created using https://github.com/rust-lang/josh-sync. r? @ghost
…ark-Simulacrum Implement `Vec::retain_unstable` ACP This implements the `Vec::retain_unstable` method accepted as an ACP in [here](rust-lang/libs-team#275). Here's the [tracking issue](rust-lang#164152) as well. The first approach for `Vec::retain_unstable` is taken from what was discussed in this Zulip thread (namely @cuviper was the one who came up with this algorithm): [#t-libs/api-changes > ✔ swap_retain for Vec @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/327149-t-libs.2Fapi-changes/topic/.E2.9C.94.20swap_retain.20for.20Vec/near/394530721)? The first approach did the following: 1) Scan forward for something we want to remove (predicate returns false). 2) Scan backward for something we want to keep (predicate returns true). * In the reverse search process, we drop elements that the predicate evaluated as false. * In the event that no elements in the reverse search evaluated to true by the predicate, then the vector is simply truncated to remove the current and remaining elements. 3) Overwrite the forward element with the backward element. 4) Rinse and repeat from 1) until there are no elements we can iterate through. I then changed the implementation of `Vec::retain_unstable` to use a different approach. This one was also discussed in the same Zulip, where I took this approach from @quaternic who proposed the idea here: [#t-libs/api-changes > ✔ swap_retain for Vec @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/327149-t-libs.2Fapi-changes/topic/.E2.9C.94.20swap_retain.20for.20Vec/near/394428700). This approach (basically the 6th approach I tried) essentially does the following: 1) Search backward until you find an element you want to remove (implicitly that means all elements after the one you want to remove are elements you want to keep) 2) Swap this element with an element that was kept in the back (or if there are no remaining elements, simply truncate the vec) 3) Repeat from 1) until there's no element to iterate through. It uses significantly less unsafe code, doesn't have the shenanigans of using a guard struct/drop handler, and it optimizes itself really well (performing relatively the same or better than the first approach). `Vec::pop` and `mem::replace` seems to do a really good job here to do the work of `Vec::swap_remove`; they both seem to have similar performance, but I do notice they each perform worse than each other in certain cases (unsure why). In any case, I opted to use `Vec::pop` and `mem::replace`. **Regarding AI Usage:** No, I have not used an LLM to write this code and algorithm. Prior to opening the PR, I took the last 3 days (probably ~20 hours), with the last two days spending time overnight to do this all by hand (as I write this now, it's 7 AM, and I've been working on this since 1 AM due to realizing what caused the double drop/repeated "unaligned tcache chunk detected" errors were coming from and just cleaning up everything). I took time to read through the ACP and Zulip thread, understood how `Vec::retain_mut` worked underneath the hood: https://github.com/rust-lang/rust/blob/7211ea594cbf137ef6118b1752b959dea7cb9088/library/alloc/src/vec/mod.rs#L2502-L2610 and traded some of my sanity to debug and fix double drop/panic errors (be it from the predicate end or the drop of the element); you may notice that the earlier implementation for this follows a similar structure to the `Vec::retain_mut` implementation. The tests and benchmarks are templated off the ones made for `Vec::retain` (if you look earlier/later in the file, you'll see them). I did add few more test cases to cover for the case on what happens if the predicate returned false on all elements (or vice versa true on all elements). I have, however, used Claude Sonnet 5.5 to create markdown formatted table of the data I collected. All the raw data collection and benchmarking code were manually collected via `./x bench library/alloc --test-args=bench_retain` and pasted into txt files. I made sure to verify that the markdown-formatted tables parsed the data correctly from the txt files I pasted them in. I hope this is an acceptable usage of AI here. To further note, I am only showing the first `Vec::retain_unstable` implementation/6th + 7th approach (the pure reverse search iteration, one with `Vec::pop` + `mem::replace` and other with `Vec::swap_remove`); all the other approaches in between performed pretty badly or didn't exceed the performance of approach 1. The following is benchmarking data on `Vec::retain` and `Vec::retain_unstable` (the latter of which only shows the two main approaches that were used in commit history): | Benchmark | Vec::retain | Vec::retain_unstable Approach 1 | Vec::retain_unstable Approach 6 | Vec::retain_unstable Approach 7 | |---|---|---|---|---| | bench_retain_100000 | 37476.58 ± 8850.81 | 36563.43 ± 619.68 | 36798.82 ± 239.89 | 56966.76 ± 392.28 | | bench_retain_none_100000 | 1.24 ± 0.01 | 1.24 ± 0.01 | 1.24 ± 0.00 | 1.24 ± 0.00 | | bench_retain_quarter_false_100000 | 34050.51 ± 117.18 | 42963.59 ± 2798.66 | 27929.89 ± 183.32 | 27748.10 ± 3916.34 | | bench_retain_100000_alternating_with_alignment | 32711.64 ± 518.39 | 33780.88 ± 358.60 | 33282.16 ± 202.27 | 30596.01 ± 400.60 | | bench_retain_100000_quarter_false_with_alignment | 48943.07 ± 583.16 | 49239.34 ± 5107.02 | 49642.47 ± 389.36 | 48160.21 ± 1277.09 | | bench_retain_whole_100000 | 15616.17 ± 82.73 | 15662.04 ± 135.53 | 15558.17 ± 53.02 | 15575.18 ± 148.82 | | bench_retain_whole_u8_000004 | 1.67 ± 0.02 | 1.86 ± 0.01 | 1.65 ± 0.00 | 1.66 ± 0.01 | | bench_retain_whole_u8_000008 | 2.29 ± 0.03 | 2.28 ± 0.01 | 2.07 ± 0.01 | 2.28 ± 0.03 | | bench_retain_whole_u8_000016 | 3.54 ± 0.07 | 3.52 ± 0.01 | 3.18 ± 0.09 | 3.31 ± 0.11 | | bench_retain_whole_u8_000032 | 6.07 ± 1.28 | 6.00 ± 0.09 | 5.75 ± 0.14 | 5.92 ± 0.11 | | bench_retain_whole_u8_000064 | 10.99 ± 0.10 | 10.97 ± 0.11 | 10.75 ± 0.11 | 10.86 ± 0.21 | | bench_retain_whole_u8_000128 | 20.94 ± 1.52 | 21.12 ± 0.23 | 20.69 ± 0.05 | 20.89 ± 0.04 | | bench_retain_whole_u8_000256 | 41.42 ± 0.81 | 40.95 ± 0.04 | 44.47 ± 0.10 | 44.68 ± 0.87 | | bench_retain_whole_u8_000512 | 84.63 ± 0.52 | 84.38 ± 0.10 | 84.17 ± 0.06 | 84.39 ± 0.51 | | bench_retain_whole_u8_001000 | 163.09 ± 4.57 | 160.71 ± 0.26 | 159.89 ± 0.22 | 160.09 ± 1.70 | | bench_retain_whole_u8_010000 | 1563.25 ± 170.51 | 1556.72 ± 2.64 | 1555.94 ± 3.38 | 1556.07 ± 2.92 | | bench_retain_whole_u8_100000 | 15584.98 ± 3022.73 | 15519.22 ± 37.93 | 15519.27 ± 34.22 | 15520.80 ± 48.78 | | bench_retain_whole_u16_000004 | 1.67 ± 0.01 | 1.66 ± 0.01 | 1.45 ± 0.01 | 1.66 ± 0.01 | | bench_retain_whole_u16_000008 | 2.29 ± 0.04 | 2.09 ± 0.01 | 1.87 ± 0.01 | 2.27 ± 0.00 | | bench_retain_whole_u16_000016 | 3.54 ± 0.05 | 3.33 ± 0.14 | 3.19 ± 0.21 | 3.43 ± 0.08 | | bench_retain_whole_u16_000032 | 6.04 ± 0.05 | 5.89 ± 0.09 | 5.73 ± 0.21 | 5.91 ± 0.07 | | bench_retain_whole_u16_000064 | 11.02 ± 0.10 | 10.86 ± 0.67 | 10.76 ± 0.22 | 10.92 ± 0.14 | | bench_retain_whole_u16_000128 | 21.00 ± 0.08 | 20.88 ± 0.39 | 20.69 ± 0.35 | 20.86 ± 0.21 | | bench_retain_whole_u16_000256 | 40.97 ± 0.38 | 40.72 ± 0.32 | 44.74 ± 0.62 | 44.70 ± 3.02 | | bench_retain_whole_u16_000512 | 87.09 ± 15.45 | 84.59 ± 0.18 | 83.96 ± 0.09 | 84.40 ± 7.96 | | bench_retain_whole_u16_001000 | 164.42 ± 3.27 | 160.71 ± 0.54 | 159.66 ± 0.17 | 160.08 ± 0.41 | | bench_retain_whole_u16_010000 | 1594.39 ± 146.76 | 1556.66 ± 2.00 | 1555.61 ± 4.25 | 1556.03 ± 5.08 | | bench_retain_whole_u16_100000 | 15848.05 ± 3849.79 | 15517.92 ± 19.14 | 15522.59 ± 26.40 | 15524.23 ± 15.75 | | bench_retain_whole_u32_000004 | 1.88 ± 0.10 | 1.66 ± 0.01 | 1.45 ± 0.29 | 1.66 ± 0.01 | | bench_retain_whole_u32_000008 | 2.29 ± 0.06 | 2.08 ± 0.01 | 1.88 ± 0.03 | 2.27 ± 0.01 | | bench_retain_whole_u32_000016 | 3.55 ± 0.05 | 3.42 ± 0.08 | 3.20 ± 0.17 | 3.43 ± 0.21 | | bench_retain_whole_u32_000032 | 6.05 ± 0.08 | 5.93 ± 0.09 | 5.71 ± 0.25 | 5.93 ± 0.14 | | bench_retain_whole_u32_000064 | 11.04 ± 0.14 | 10.95 ± 0.18 | 10.75 ± 0.30 | 10.93 ± 0.18 | | bench_retain_whole_u32_000128 | 21.20 ± 0.30 | 20.86 ± 0.21 | 20.68 ± 0.24 | 20.88 ± 0.09 | | bench_retain_whole_u32_000256 | 41.20 ± 0.49 | 45.23 ± 5.01 | 44.92 ± 0.57 | 44.96 ± 0.28 | | bench_retain_whole_u32_000512 | 85.30 ± 1.42 | 84.58 ± 0.12 | 83.97 ± 0.16 | 84.59 ± 0.15 | | bench_retain_whole_u32_001000 | 161.23 ± 2.12 | 160.74 ± 0.52 | 159.68 ± 0.31 | 160.31 ± 0.43 | | bench_retain_whole_u32_010000 | 1570.97 ± 15.19 | 1566.32 ± 5.97 | 1559.63 ± 4.83 | 1560.98 ± 3.39 | | bench_retain_whole_u32_100000 | 15646.12 ± 150.06 | 15626.45 ± 58.76 | 15532.71 ± 37.13 | 15567.46 ± 84.21 | | bench_retain_whole_u64_000004 | 1.66 ± 0.02 | 1.66 ± 0.00 | 1.45 ± 0.00 | 1.86 ± 0.00 | | bench_retain_whole_u64_000008 | 2.30 ± 0.06 | 2.24 ± 0.20 | 1.87 ± 0.01 | 2.27 ± 0.00 | | bench_retain_whole_u64_000016 | 3.54 ± 0.04 | 3.53 ± 0.19 | 3.16 ± 0.06 | 3.40 ± 0.06 | | bench_retain_whole_u64_000032 | 6.05 ± 0.10 | 6.03 ± 0.22 | 5.71 ± 0.09 | 5.88 ± 0.15 | | bench_retain_whole_u64_000064 | 11.04 ± 0.10 | 11.00 ± 0.21 | 10.74 ± 0.14 | 10.89 ± 0.18 | | bench_retain_whole_u64_000128 | 20.99 ± 0.13 | 20.90 ± 0.45 | 20.68 ± 0.13 | 20.90 ± 0.07 | | bench_retain_whole_u64_000256 | 41.02 ± 0.45 | 40.77 ± 0.66 | 44.67 ± 0.12 | 45.70 ± 5.03 | | bench_retain_whole_u64_000512 | 85.22 ± 0.85 | 85.29 ± 1.03 | 84.38 ± 0.08 | 84.59 ± 0.33 | | bench_retain_whole_u64_001000 | 161.32 ± 1.46 | 160.48 ± 1.51 | 160.09 ± 2.16 | 160.27 ± 0.19 | | bench_retain_whole_u64_010000 | 1583.79 ± 23.06 | 1558.87 ± 16.21 | 1560.58 ± 3.89 | 1560.95 ± 3.16 | | bench_retain_whole_u64_100000 | 15924.35 ± 276.94 | 15710.06 ± 383.21 | 15707.73 ± 88.41 | 15646.32 ± 1949.35 | | bench_retain_u8_000004 | 6.70 ± 0.22 | 6.27 ± 0.06 | 6.84 ± 0.04 | 6.65 ± 0.22 | | bench_retain_u8_000008 | 7.29 ± 0.05 | 6.97 ± 0.11 | 8.96 ± 1.12 | 8.22 ± 0.13 | | bench_retain_u8_000016 | 9.98 ± 0.06 | 9.29 ± 2.05 | 13.86 ± 0.09 | 12.02 ± 0.54 | | bench_retain_u8_000032 | 15.54 ± 0.22 | 16.57 ± 1.01 | 22.92 ± 2.46 | 18.31 ± 0.81 | | bench_retain_u8_000064 | 26.20 ± 0.72 | 27.53 ± 4.85 | 41.98 ± 1.49 | 33.25 ± 3.08 | | bench_retain_u8_000128 | 49.54 ± 1.24 | 50.94 ± 2.90 | 76.62 ± 0.97 | 59.92 ± 8.54 | | bench_retain_u8_000256 | 91.23 ± 0.71 | 92.18 ± 4.19 | 146.77 ± 1.15 | 116.72 ± 3.17 | | bench_retain_u8_000512 | 174.23 ± 1.87 | 181.76 ± 2.15 | 286.72 ± 2.87 | 229.30 ± 9.38 | | bench_retain_u8_001000 | 332.92 ± 1.09 | 334.72 ± 4.55 | 553.55 ± 4.15 | 442.96 ± 7.01 | | bench_retain_u8_010000 | 3251.47 ± 75.14 | 3260.39 ± 28.63 | 5478.62 ± 42.90 | 4414.76 ± 25.27 | | bench_retain_u8_100000 | 32657.05 ± 2751.67 | 32454.35 ± 115.06 | 54724.37 ± 112.44 | 43629.83 ± 169.57 | | bench_retain_u16_000004 | 6.10 ± 0.03 | 5.79 ± 0.15 | 6.72 ± 0.04 | 6.70 ± 0.18 | | bench_retain_u16_000008 | 7.36 ± 0.06 | 6.96 ± 0.03 | 8.42 ± 0.04 | 8.35 ± 0.30 | | bench_retain_u16_000016 | 9.27 ± 0.60 | 9.90 ± 0.25 | 12.37 ± 0.31 | 11.70 ± 0.53 | | bench_retain_u16_000032 | 13.16 ± 1.47 | 15.05 ± 1.80 | 19.48 ± 0.86 | 16.50 ± 2.08 | | bench_retain_u16_000064 | 20.20 ± 2.33 | 26.86 ± 3.79 | 36.86 ± 2.86 | 27.13 ± 6.02 | | bench_retain_u16_000128 | 38.05 ± 4.88 | 50.21 ± 1.83 | 65.07 ± 2.02 | 51.31 ± 9.55 | | bench_retain_u16_000256 | 66.12 ± 15.22 | 91.89 ± 3.33 | 121.84 ± 2.32 | 94.34 ± 11.84 | | bench_retain_u16_000512 | 123.60 ± 0.66 | 175.47 ± 2.48 | 236.31 ± 11.70 | 181.07 ± 29.55 | | bench_retain_u16_001000 | 241.17 ± 34.55 | 341.28 ± 3.05 | 453.58 ± 0.83 | 346.32 ± 4.42 | | bench_retain_u16_010000 | 2376.12 ± 350.65 | 3369.49 ± 38.55 | 4453.28 ± 34.60 | 3385.89 ± 76.81 | | bench_retain_u16_100000 | 23800.32 ± 1808.66 | 33784.22 ± 150.95 | 44440.85 ± 59.13 | 33771.11 ± 155.56 | | bench_retain_u32_000004 | 6.67 ± 0.34 | 5.86 ± 0.03 | 6.63 ± 0.23 | 7.04 ± 0.02 | | bench_retain_u32_000008 | 7.38 ± 0.16 | 6.55 ± 0.03 | 7.48 ± 0.35 | 8.74 ± 0.06 | | bench_retain_u32_000016 | 10.14 ± 1.22 | 9.06 ± 0.05 | 10.60 ± 0.67 | 13.70 ± 3.53 | | bench_retain_u32_000032 | 16.34 ± 1.35 | 15.13 ± 0.91 | 15.62 ± 2.41 | 22.55 ± 0.17 | | bench_retain_u32_000064 | 27.31 ± 0.43 | 26.00 ± 0.41 | 26.94 ± 4.25 | 42.43 ± 0.12 | | bench_retain_u32_000128 | 51.99 ± 0.39 | 52.05 ± 4.56 | 51.69 ± 12.33 | 77.16 ± 0.45 | | bench_retain_u32_000256 | 96.51 ± 2.01 | 94.58 ± 0.67 | 97.03 ± 17.27 | 147.31 ± 0.71 | | bench_retain_u32_000512 | 188.00 ± 1.40 | 188.41 ± 2.63 | 189.28 ± 0.98 | 292.59 ± 2.53 | | bench_retain_u32_001000 | 369.73 ± 6.73 | 366.19 ± 3.19 | 366.53 ± 3.08 | 572.00 ± 4.90 | | bench_retain_u32_010000 | 3670.92 ± 52.18 | 3637.99 ± 10.76 | 3642.67 ± 234.14 | 5695.97 ± 22.42 | | bench_retain_u32_100000 | 36795.72 ± 626.05 | 36411.14 ± 247.22 | 36417.13 ± 112.45 | 56958.37 ± 308.11 | | bench_retain_u64_000004 | 6.41 ± 0.20 | 5.71 ± 0.08 | 6.24 ± 0.22 | 6.47 ± 0.04 | | bench_retain_u64_000008 | 7.91 ± 0.55 | 6.70 ± 0.13 | 8.49 ± 1.02 | 10.13 ± 0.08 | | bench_retain_u64_000016 | 10.69 ± 0.22 | 9.63 ± 0.09 | 10.85 ± 2.67 | 13.08 ± 1.25 | | bench_retain_u64_000032 | 17.20 ± 0.51 | 16.05 ± 0.14 | 17.76 ± 1.65 | 18.26 ± 3.04 | | bench_retain_u64_000064 | 28.55 ± 0.73 | 27.87 ± 0.17 | 30.98 ± 0.90 | 30.85 ± 6.37 | | bench_retain_u64_000128 | 55.61 ± 7.67 | 54.88 ± 0.23 | 61.73 ± 9.24 | 63.07 ± 4.98 | | bench_retain_u64_000256 | 107.25 ± 2.72 | 108.75 ± 1.52 | 114.94 ± 1.65 | 114.59 ± 20.70 | | bench_retain_u64_000512 | 215.64 ± 12.76 | 214.78 ± 1.37 | 224.26 ± 1.21 | 223.68 ± 65.43 | | bench_retain_u64_001000 | 417.88 ± 8.98 | 416.98 ± 2.12 | 427.78 ± 9.27 | 427.92 ± 92.07 | | bench_retain_u64_010000 | 4173.49 ± 59.43 | 4164.23 ± 21.13 | 4171.13 ± 2053.29 | 4159.72 ± 528.47 | | bench_retain_u64_100000 | 45586.61 ± 5794.73 | 41787.79 ± 701.76 | 41832.71 ± 196.84 | 41790.43 ± 373.08 | The raw data can be found in this [repository](https://github.com/asder8215/vec-retain-unstable/tree/main/retain_unstable%20benchmarks) I made. I was working with the current benchmarking cases that `Vec::retain` had and trying to see if I could optimize `Vec::retain_unstable` to at least be on par with `Vec::retain` for certain cases and then excel better than it in additional cases like filtering 25% of the data (though this was in a contiguous block) or with filtering elements aligned to 64 bytes (filling up a cache line). There are likely more cases I could've benchmarked like how it does when we're filtering 5%, 10%, 15%, 20% of the vector, whether those filtered elements came in contiguous portions or more randomly spread apart, how it does with bigger sized elements (128 bytes, 256 bytes, etc.), etc.. If you want me to add benchmark cases for those, I could do that. Let me know if there's anything else I could improve in this PR.
alloctests: use thread-local in `c_str_alloc_error` Fixes rust-lang#165901 As suggested by @bjorn3 in rust-lang#165901 (comment)
…axdexh Document failing cases for spawning processes when using Command This should address issue rust-lang#108213 by documenting the failing cases for methods such as `Command::spawn()` or `Command::output()` in the module level documentation. Close rust-lang#108213
…my-code, r=clarfonthey Fix bad hyperlink Make it so `x doc library` doesn't fail due to a "this hyperlink is cringe" warning
We have four MIPS-like arches, not just the two.
…ted` All other architecture families currently use a single macro for both 32- and 64-bit versions. Do the same for MIPS.
…clarfonthey Import hashbrown Hello! This pr imports hashbrown as a sub tree to unblock this issue: rust-lang#158111 I've also opened a pr at hashbrown with `josh-sync.toml` and `rust-version`: rust-lang/hashbrown#754 I haven't made std/alloc depend on local hashbrown. This pr only introduces the subtree. Zulip thread: https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Implementation.20of.20.60HashTable.60 cc @clarfonthey @Kobzol @Amanieu r? @Kobzol
std: Combine `is_mips64_feature_detected` into `is_mips_feature_detected` and enable on MIPS release 6 All other architecture families currently use a single macro for both 32- and 64-bit versions. Do the same for MIPS. Tracking issue: rust-lang#111188
…in-2026-09-update, r=davidtwco Update std_detect support for AArch64 Darwin This makes it current as of mid-October, 2026. This also relaxes the requirements on FEAT_FP8 to just be NEON/ASIMD, reflecting a similar relaxation already done in LLVM. No part of this was done using LLMs in any capacity.
…cting-tools, r=oli-obk reflection: enable tool attributes to be reflectable Adds an option to the `register_tool` crate level attribute to allow the option to be reflective. Tool attributes of these registered tools are queryable from a `TypeId` object. Encoded the reflectivity of an attribute in `Attribute::Tool` because the attributes can come from another crate and tools are reflective at the crate level. Addresses the FIXME introduced in rust-lang#165810 Maybe we should run a perf run for it, not sure if the change to `Attribute::Tool` would impact it. r? @oli-obk cc @mejrs
|
|
flux-rs/flux#1921 moves Flux to nightly-2026-11-19. With it, cargo flux -p core checks 488 functions and solves 35 constraints, as on main, so no spec changes are needed.
|
@ranjitjhala, flux-rs/flux#1921 is merged, and this PR now pins Flux to it ( |
feliperodri
left a comment
There was a problem hiding this comment.
Approved. The Flux job was the last failure; it's fixed by pinning flux-rs/flux#1921.
|
done! thanks! |
This is an automated PR to merge library subtree updates from 2026-11-12 (rust-lang/rust@3ef0c22) to 2026-11-19 (rust-lang/rust@65ce861), inclusive. This is a clean merge, no conflicts were detected. Do not remove or edit the following annotations:
git-subtree-dir: library
git-subtree-split: 9016e78