Commit graph

310248 commits

Author SHA1 Message Date
Folkert de Vries
04d97bc964
add an avx512 psad shim
also combine the sse2 and avx2 version into one generic function for all 3
2025-11-15 13:36:41 +01:00
Ralf Jung
a3955227a8
Merge pull request #4683 from RalfJung/epoll-without-ready
epoll: get rid of separate ready_list
2025-11-12 15:43:45 +00:00
Ralf Jung
1f8f218fa7 epoll: get rid of separate ready_list 2025-11-12 16:06:38 +01:00
Ralf Jung
037db1e3c9
Merge pull request #4680 from rust-lang/rustup-2025-11-12
Automatic Rustup
2025-11-12 07:49:37 +00:00
Ralf Jung
4e28f0fbde try to be more robust against short hickups in the Ubuntu Ports mirrors 2025-11-12 08:22:58 +01:00
Ralf Jung
d8b01c7c1b fix function_casts_as_integer lint 2025-11-12 08:08:59 +01:00
Ralf Jung
77f2e03331 update lockfile 2025-11-12 08:06:41 +01:00
The Miri Cronjob Bot
1368257920 fmt 2025-11-12 05:02:50 +00:00
The Miri Cronjob Bot
a973a8cc20 Merge ref '0b329f801a' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 0b329f801a
Filtered ref: f63ba2a05c24f7e8c4fdc4708d07717cc10ca90f
Upstream diff: 8401398e1f...0b329f801a

This merge was created using https://github.com/rust-lang/josh-sync.
2025-11-12 05:02:17 +00:00
The Miri Cronjob Bot
be30f5a497 Prepare for merging from rust-lang/rust
This updates the rust-version file to 0b329f801a.
2025-11-12 04:54:23 +00:00
bors
0b329f801a Auto merge of #148851 - Zalathar:rollup-4y7ywyd, r=Zalathar
Rollup of 16 pull requests

Successful merges:

 - rust-lang/rust#146627 (Simplify `jemalloc` setup)
 - rust-lang/rust#147753 (Suggest add bounding value for RangeTo)
 - rust-lang/rust#147832 (rustdoc: Don't pass `RenderOptions` to `DocContext`)
 - rust-lang/rust#147974 (Improve diagnostics for buffer reuse with borrowed references)
 - rust-lang/rust#148080 ([rustdoc] Fix invalid jump to def macro link generation)
 - rust-lang/rust#148465 (Adjust spans into the `for` loops context before creating the new desugaring spans.)
 - rust-lang/rust#148500 (Update git index before running diff-index)
 - rust-lang/rust#148531 (rustc_target: introduce Abi, Env, Os)
 - rust-lang/rust#148536 (cmse: add test for `async` and `const` functions)
 - rust-lang/rust#148770 (implement `feature(c_variadic_naked_functions)`)
 - rust-lang/rust#148780 (fix filecheck typos in tests)
 - rust-lang/rust#148819 (Remove specialized warning for removed target)
 - rust-lang/rust#148830 (miri subtree update)
 - rust-lang/rust#148833 (Update rustbook dependencies)
 - rust-lang/rust#148834 (fix(rustdoc): Color doctest errors)
 - rust-lang/rust#148841 (Remove more `#[must_use]` from portable-simd)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-12 01:28:30 +00:00
Stuart Cook
2443cfb7a3
Rollup merge of #148841 - dtolnay:simdmustuse, r=calebzulawski
Remove more `#[must_use]` from portable-simd

These lines were missed in <f3515fb127>/rust-lang/rust#136923 because core_simd/src/masks/bitmask.rs is only conditionally compiled.

25d319a0f6/library/portable-simd/crates/core_simd/src/masks.rs (L9-L13)

Removing them unblocks bootstrapping rustc in an environment where avx512f is enabled. Without this change:

```console
error: `#[must_use]` attribute cannot be used on trait methods in impl blocks
   --> library/core/src/../../portable-simd/crates/core_simd/src/masks/bitmask.rs:173:5
    |
173 |     #[must_use = "method returns a new mask and does not mutate the original value"]
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = help: `#[must_use]` can be applied to data types, functions, unions, required trait methods, provided trait methods, inherent methods, foreign functions, and traits
    = note: `-D unused-attributes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_attributes)]`
```

To reproduce:

`RUSTC_BOOTSTRAP=1 RUSTFLAGS=-Ctarget-feature=+avx512f cargo +nightly check --manifest-path=library/portable-simd/crates/core_simd/Cargo.toml --target=x86_64-unknown-linux-gnu --no-default-features`
2025-11-12 12:26:44 +11:00
Stuart Cook
0675923ef8
Rollup merge of #148834 - Muscraft:fix-doctest-colors, r=fmease
fix(rustdoc): Color doctest errors

`@fmease's` [Deep analysis](https://github.com/rust-lang/rust/issues/148749#issuecomment-3508455278) on the problem
> Yeah, here's a deep analysis by me from a few weeks back of what's going on ([#148101 (comment)](https://github.com/rust-lang/rust/pull/148101#discussion_r2462756875)):
>
> > […]
> > However, since said PR ([#147207](https://github.com/rust-lang/rust/pull/147207): migrating coloring crates), `HumanEmitter::supports_color()` unconditionally(!) returns `false` (in fact, `Emitter::supports_color` is no longer used by anyone else and should be removed), so there's no reason to keep it. Rephrased, since that PR all compiler diagnostics for doctests are uncolored.
> > You could argue that I should keep it and patch `supports_color` in rustc to "work again". However, I'd rather rework our doctest coloring wholesale in a separate PR. At least before that migration PR, our setup was quite busted:
> >
> > 1. First of all, it didn't query+set `supports_color` for syntactically invalid doctests, so syntax errors were always shown without color (contrary to e.g., name resolution errors).
> > 2. Second of all, calling `supports_color()` here was quite frankly wrong: Piping the output of `rustdoc … --test` into a file (or `| cat` or whatever) did **not** suppress colors. I'm not actually sure if we can ever address that nicely (without stripping ANSI codes after the fact) since we pass that diagnostic to `libtest`, right? I might very well be wrong here, maybe it's a non-issue.

<hr>

```rust
/// ```
/// foo
/// ```
fn foo() {}
```
```
rustdoc --test lib.rs
```

Stable:
<img width="377" height="290" alt="stable" src="https://github.com/user-attachments/assets/cd20f947-b58d-42db-8735-797613baa9cc" />

Beta:
<img width="377" height="290" alt="beta" src="https://github.com/user-attachments/assets/f02588fd-41d2-4642-b03a-5554a68671eb" />

Nightly:
<img width="377" height="290" alt="nightly" src="https://github.com/user-attachments/assets/871cb417-f47e-4058-8a76-3bcd538ce141" />

After:
<img width="377" height="290" alt="after" src="https://github.com/user-attachments/assets/5734c01f-3f1c-44bb-9404-628c0c33b440" />

Note: This will need to be backported to `beta`

Fixes: rust-lang/rust#148749
2025-11-12 12:26:43 +11:00
Stuart Cook
9b7cfdfa0c
Rollup merge of #148833 - clubby789:cargo-update-rustbook-11-11-25, r=ehuss
Update rustbook dependencies

https://github.com/rust-lang/rust/pull/145849#issuecomment-3394832713
2025-11-12 12:26:42 +11:00
Stuart Cook
39066236df
Rollup merge of #148830 - RalfJung:miri, r=RalfJung
miri subtree update

Lands the new avx512 support for zlib-rs, and the epoll fixes for Tokio.

Subtree update of `miri` to 667796bf66.

Created using https://github.com/rust-lang/josh-sync.

r? ````@ghost````
2025-11-12 12:26:42 +11:00
Stuart Cook
672c6b603c
Rollup merge of #148819 - bjorn3:fix_fixme, r=jieyouxu
Remove specialized warning for removed target

It has been removed 9 months ago, which is more than a few months.
2025-11-12 12:26:41 +11:00
Stuart Cook
64b56378f5
Rollup merge of #148780 - klensy:filecheck-typo, r=jieyouxu
fix filecheck typos in tests

Fixes few filecheck annotation typos in tests.
2025-11-12 12:26:41 +11:00
Stuart Cook
60b2068eed
Rollup merge of #148770 - folkertdev:naked-c-variadic, r=workingjubilee
implement `feature(c_variadic_naked_functions)`

tracking issue: https://github.com/rust-lang/rust/issues/148767

[#t-lang > C-variadic naked functions](https://rust-lang.zulipchat.com/#narrow/channel/213817-t-lang/topic/C-variadic.20naked.20functions/with/554593886)

This feature allows naked c-variadic function definitions with any ABI that is supported for foreign c-variadic functions.

```rust
#![feature(c_variadic, c_variadic_naked_functions)]

#[unsafe(naked)]
unsafe extern "win64" fn variadic_win64(_: u32, _: ...) -> u32 {
    core::arch::naked_asm!(
        r#"
        push    rax
        mov     qword ptr [rsp + 40], r9
        mov     qword ptr [rsp + 24], rdx
        mov     qword ptr [rsp + 32], r8
        lea     rax, [rsp + 40]
        mov     qword ptr [rsp], rax
        lea     eax, [rdx + rcx]
        add     eax, r8d
        pop     rcx
        ret
    "#,
    )
}
```

r? ````@workingjubilee````
2025-11-12 12:26:40 +11:00
Stuart Cook
ab8bdf7d3e
Rollup merge of #148536 - folkertdev:cmse-async-const-fn, r=davidtwco
cmse: add test for `async` and `const` functions

tracking issue: https://github.com/rust-lang/rust/issues/81391
tracking issue: https://github.com/rust-lang/rust/issues/75835

Some additional tests that seemed useful while working on the RFC text.

`async` functions are disallowed (because `-> impl Trait` is not supported).

`const` entry functions are allowed, `nonsecure-call` does not make sense, because this abi can only be used on function pointers, which cannot be evaluated during constant evaluation.

The async test is in the `c-variadic.rs` file because it has the minicore-compatible machinery for defining an async function. Splitting that logic out (like `minisimd.rs`) turns out to be complicated because the async stuff relies on types defined by minicore.

r? `````@davidtwco`````
2025-11-12 12:26:40 +11:00
Stuart Cook
3b8d30becb
Rollup merge of #148531 - tamird:vendor-enum, r=nnethercote
rustc_target: introduce Abi, Env, Os

Improve type safety by using an enum rather than strings.

I'm not really sure this is better since only a few vendors have special semantics. r? ``@nnethercote``
2025-11-12 12:26:39 +11:00
Stuart Cook
de8f0c016f
Rollup merge of #148500 - Kobzol:git-update-inex, r=jieyouxu
Update git index before running diff-index

Discussed in https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/tidy.3A.20strange.20number.20of.20modified.20files/with/553714742.

This is apparently the cause of `x test tidy` printing weird number of formatted files, and also of sometimes quirky behavior of finding the files modified from a base commit.
2025-11-12 12:26:39 +11:00
Stuart Cook
a2c8493550
Rollup merge of #148465 - Jarcho:for_span, r=davidtwco,Zalathar
Adjust spans into the `for` loops context before creating the new desugaring spans.

When lowering `for` loops, the spans for the `into_iter` call and the `Some` pattern used the span of the provided pattern and head expression. If either of those came from a different `SyntaxContext` this would result in some very strange contexts. e.g.:

```rust
macro_rules! m { ($e:expr) => { { $e } } }
for _ in m!(expr) {}
```

This would result in the `into_iter` call have a context chain of `desugar => m!() => root` which is completely nonsensical; `m!()`  does not have a `for` loop. The `into_iter` call also ends up located at `{ $e }` rather than inside the `for _ in _` part.

This fixes that by walking the spans up to the `for` loop's context first. This will not handle adjusting the location of macro variable expansions (e.g. `for _ in $e`), but this does adjust the context to match the `for` loops.

---

This ended up causing rust-lang/rust-clippy#16008. Clippy should be using a `debug_assert` rather than `unreachable`, but it still results in a bug either way.
2025-11-12 12:26:38 +11:00
Stuart Cook
87ba9a5251
Rollup merge of #148080 - GuillaumeGomez:fix-jump-def-links, r=lolbinarycat
[rustdoc] Fix invalid jump to def macro link generation

Follow-up of https://github.com/rust-lang/rust/issues/147820.

I realized that when there was no intra-doc link linking to the same item, then the generated link for macros in jump to def would be invalid.

To make the code less redundant, I merged the "registering" of items and the href generation use the same code for macros.

r? `````@notriddle`````
2025-11-12 12:26:37 +11:00
Stuart Cook
b98d127133
Rollup merge of #147974 - JohnTitor:diag-detect-buf-reuse-pattern, r=estebank
Improve diagnostics for buffer reuse with borrowed references

Addresses rust-lang/rust#147694

I'm not sure the current note wording is the best so I appreciate any feedback.
2025-11-12 12:26:36 +11:00
Stuart Cook
203130b258
Rollup merge of #147832 - aDotInTheVoid:rustdoc-format-options, r=GuillaumeGomez
rustdoc: Don't pass `RenderOptions` to `DocContext`

`RenderOptions` is full of HTML specific fields. The only ones that `DocContext` needs are `document_private` and `document_hidden`, which are accessable via `Cache` anyway.

Part of a larger campeign against `RenderOption`:
https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/Using.20.60RenderOptions.60.20in.20less.20places.2E/with/545705812
2025-11-12 12:26:36 +11:00
Stuart Cook
4cd28dea58
Rollup merge of #147753 - chenyukang:yukang-147749, r=fmease
Suggest add bounding value for RangeTo

Fixes rust-lang/rust#147749
2025-11-12 12:26:35 +11:00
Stuart Cook
5dc3c19417
Rollup merge of #146627 - madsmtm:jemalloc-simplify, r=jdonszelmann
Simplify `jemalloc` setup

In the past, `#[used]` had to appear in the top-level crate to have a consistent effect on the linker. This has been fixed a while ago for ELF with the introduction of the `symbols.o` file in https://github.com/rust-lang/rust/pull/95604, and more recently for Mach-O in https://github.com/rust-lang/rust/pull/133832, which means that libraries can now implement the required workarounds themselves. This allows moving these `#[used]` declarations out of our `main.rs`.

Specifically, I have moved them into `tikv-jemalloc-sys` where they belong in https://github.com/tikv/jemallocator/pull/109 and done the same for `mimalloc` in https://github.com/purpleprotocol/mimalloc_rust/pull/146 (in case we want to experiment with switching to that one day).

Test with:
```sh
./x build library src/tools/rustdoc src/tools/clippy --set rust.jemalloc=true

# macOS
lldb -- ./build/host/stage1/bin/rustc -vV
(lldb) b _rjem_je_zone_register
(lldb) run
# Should breakpoint, this means that the allocator was properly linked

# Linux
lldb -- ./build/host/stage1/bin/rustc -vV
(lldb) b malloc
(lldb) run
# Should breakpoint, inspect that the `malloc` symbol comes from the `rustc` binary and not from `libc`
```

try-job: `aarch64-gnu`
try-job: `dist-aarch64-linux`
try-job: `dist-x86_64-musl`
try-job: `dist-x86_64-apple`
try-job: `dist-aarch64-apple`
2025-11-12 12:26:35 +11:00
Scott Schafer
c523b65245
fix(rustdoc): Color doctest errors 2025-11-11 17:23:35 -07:00
Jason Newcomb
76067c446c Adjust spans into the for loops context before creating the pattern and into_iter call spans. 2025-11-11 19:18:19 -05:00
Tamir Duberstein
98a534e1fa
rustc_codegen_ssa: reduce repetition 2025-11-11 19:02:09 -05:00
Tamir Duberstein
19e26afff8
rustc_target: rehome target_abi comment 2025-11-11 19:00:42 -05:00
Tamir Duberstein
fcf6809b05
rustc_target: introduce Os
Improve type safety by using an enum rather than strings.
2025-11-11 18:55:40 -05:00
Tamir Duberstein
ddd7596400
rustc_target: introduce Env
Improve type safety by using an enum rather than strings.
2025-11-11 18:34:47 -05:00
Tamir Duberstein
86c74a4d16
rustc_target: introduce Abi
Improve type safety by using an enum rather than strings.
2025-11-11 18:22:38 -05:00
Alona Enraght-Moony
b808f330ed rustdoc: Don't pass RenderOptions to DocContext
`RenderOptions` is full of HTML specific fields. The only ones that
`DocContext` needs are `document_private` and `document_hidden`, which
are accessable via `Cache` anyway.

Part of a larger campeign against `RenderOptions`:
https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/Using.20.60RenderOptions.60.20in.20less.20places.2E/with/545705812
2025-11-11 22:00:28 +00:00
bors
11339a0ef5 Auto merge of #144674 - rperier:add_note_if_a_type_impl_a_trait_with_the_same_name, r=lcnr
Add a diagnostic for similarly named traits

cc rust-lang/rust#133123

This is a first proposal, suggestions are welcome
2025-11-11 21:54:08 +00:00
Tamir Duberstein
a1122a1088
rustc_target: rename Arch::{Uknown,Other}
Prepare for additional enums like Vendor and Os which have true
`Unknown` variants. We want to use the same name for the escape hatch
for all of these, thus rename this one.
2025-11-11 16:47:24 -05:00
Tamir Duberstein
c6f924c182
rustc_target: move comment to macro
Avoid duplicating this comment in preparation for adding more enums.
2025-11-11 16:47:24 -05:00
David Tolnay
c8d1ac9e43
Remove more #[must_use] from portable-simd
warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks
       --> crates/core_simd/src/masks/bitmask.rs:173:5
        |
    173 |     #[must_use = "method returns a new mask and does not mutate the original value"]
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
        = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions
        = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default

    warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks
       --> crates/core_simd/src/masks/bitmask.rs:190:5
        |
    190 |     #[must_use = "method returns a new mask and does not mutate the original value"]
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
        = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions

    warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks
       --> crates/core_simd/src/masks/bitmask.rs:206:5
        |
    206 |     #[must_use = "method returns a new mask and does not mutate the original value"]
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
        = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions

    warning: `#[must_use]` attribute cannot be used on trait methods in impl blocks
       --> crates/core_simd/src/masks/bitmask.rs:222:5
        |
    222 |     #[must_use = "method returns a new mask and does not mutate the original value"]
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
        = help: `#[must_use]` can be applied to data types, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions
2025-11-11 13:27:04 -08:00
Jamie Hill-Daniel
54ee4925df Update rustbook dependencies
Locking 113 packages to latest compatible versions
    Updating aho-corasick v1.1.3 -> v1.1.4
    Updating ammonia v4.1.1 -> v4.1.2
    Removing android-tzdata v0.1.1
    Updating anstream v0.6.20 -> v0.6.21
    Updating anstyle v1.0.11 -> v1.0.13
    Updating anyhow v1.0.99 -> v1.0.100
    Removing bitflags v1.3.2
    Removing bitflags v2.9.2
      Adding bitflags v2.10.0
    Updating bstr v1.12.0 -> v1.12.1
    Updating cc v1.2.33 -> v1.2.45
    Updating cfg-if v1.0.1 -> v1.0.4
    Updating chrono v0.4.41 -> v0.4.42
    Updating clap v4.5.45 -> v4.5.51
    Updating clap_builder v4.5.44 -> v4.5.51
    Updating clap_complete v4.5.57 -> v4.5.60
    Updating clap_derive v4.5.45 -> v4.5.49
    Updating clap_lex v0.7.5 -> v0.7.6
    Updating doc-comment v0.3.3 -> v0.3.4
    Updating env_filter v0.1.3 -> v0.1.4
    Updating errno v0.3.13 -> v0.3.14
      Adding find-msvc-tools v0.1.4
    Updating flate2 v1.1.2 -> v1.1.5
    Updating form_urlencoded v1.2.1 -> v1.2.2
    Updating generic-array v0.14.7 -> v0.14.9
    Updating getopts v0.2.23 -> v0.2.24
    Updating getrandom v0.3.3 -> v0.3.4
    Updating hashbrown v0.15.5 -> v0.16.0
    Updating iana-time-zone v0.1.63 -> v0.1.64
    Updating icu_collections v2.0.0 -> v2.1.1
    Updating icu_locale_core v2.0.0 -> v2.1.1
    Updating icu_normalizer v2.0.0 -> v2.1.1
    Updating icu_normalizer_data v2.0.0 -> v2.1.1
    Updating icu_properties v2.0.1 -> v2.1.1
    Updating icu_properties_data v2.0.1 -> v2.1.1
    Updating icu_provider v2.0.0 -> v2.1.1
    Updating idna v1.0.3 -> v1.1.0
    Updating indexmap v2.10.0 -> v2.12.0
    Updating is_terminal_polyfill v1.70.1 -> v1.70.2
    Updating jiff v0.2.15 -> v0.2.16
    Updating jiff-static v0.2.15 -> v0.2.16
    Updating js-sys v0.3.77 -> v0.3.82
    Updating litemap v0.8.0 -> v0.8.1
    Updating lock_api v0.4.13 -> v0.4.14
    Updating log v0.4.27 -> v0.4.28
    Updating normpath v1.3.0 -> v1.5.0
    Updating once_cell_polyfill v1.70.1 -> v1.70.2
    Updating opener v0.8.2 -> v0.8.3
    Updating parking_lot v0.12.4 -> v0.12.5
    Updating parking_lot_core v0.9.11 -> v0.9.12
    Updating percent-encoding v2.3.1 -> v2.3.2
    Updating pest v2.8.1 -> v2.8.3
    Updating pest_derive v2.8.1 -> v2.8.3
    Updating pest_generator v2.8.1 -> v2.8.3
    Updating pest_meta v2.8.1 -> v2.8.3
      Adding phf v0.13.1
    Updating phf_codegen v0.11.3 -> v0.13.1
      Adding phf_generator v0.13.1
      Adding phf_shared v0.13.1
    Updating potential_utf v0.1.2 -> v0.1.4
    Updating proc-macro2 v1.0.101 -> v1.0.103
    Updating quote v1.0.40 -> v1.0.42
    Updating redox_syscall v0.5.17 -> v0.5.18
    Updating regex v1.11.1 -> v1.12.2
    Updating regex-automata v0.4.9 -> v0.4.13
    Updating regex-syntax v0.8.5 -> v0.8.8
    Updating semver v1.0.26 -> v1.0.27
    Updating serde v1.0.219 -> v1.0.228
      Adding serde_core v1.0.228
    Updating serde_derive v1.0.219 -> v1.0.228
    Updating serde_json v1.0.142 -> v1.0.145
      Adding simd-adler32 v0.3.7
    Updating stable_deref_trait v1.2.0 -> v1.2.1
    Updating string_cache v0.8.9 -> v0.9.0
    Updating string_cache_codegen v0.5.4 -> v0.6.1
    Updating syn v2.0.106 -> v2.0.110
    Updating syntect v5.2.0 -> v5.3.0
    Updating tempfile v3.20.0 -> v3.23.0
    Updating thiserror v2.0.15 -> v2.0.17
    Updating thiserror-impl v2.0.15 -> v2.0.17
    Updating tinystr v0.8.1 -> v0.8.2
    Updating typenum v1.18.0 -> v1.19.0
    Updating unicode-ident v1.0.18 -> v1.0.22
    Updating unicode-width v0.2.1 -> v0.2.2
    Updating url v2.5.4 -> v2.5.7
    Removing wasi v0.14.2+wasi-0.2.4
      Adding wasip2 v1.0.1+wasi-0.2.4
    Updating wasm-bindgen v0.2.100 -> v0.2.105
    Removing wasm-bindgen-backend v0.2.100
    Updating wasm-bindgen-macro v0.2.100 -> v0.2.105
    Updating wasm-bindgen-macro-support v0.2.100 -> v0.2.105
    Updating wasm-bindgen-shared v0.2.100 -> v0.2.105
    Updating web_atoms v0.1.3 -> v0.1.4
    Updating winapi-util v0.1.9 -> v0.1.11
    Updating windows-core v0.61.2 -> v0.62.2
    Updating windows-implement v0.60.0 -> v0.60.2
    Updating windows-interface v0.59.1 -> v0.59.3
    Updating windows-link v0.1.3 -> v0.2.1
    Updating windows-result v0.3.4 -> v0.4.1
    Updating windows-strings v0.4.2 -> v0.5.1
    Updating windows-sys v0.59.0 -> v0.61.2
    Removing windows-targets v0.52.6
    Removing windows-targets v0.53.3
      Adding windows-targets v0.53.5
    Removing windows_aarch64_gnullvm v0.52.6
    Removing windows_aarch64_gnullvm v0.53.0
      Adding windows_aarch64_gnullvm v0.53.1
    Removing windows_aarch64_msvc v0.52.6
    Removing windows_aarch64_msvc v0.53.0
      Adding windows_aarch64_msvc v0.53.1
    Removing windows_i686_gnu v0.52.6
    Removing windows_i686_gnu v0.53.0
      Adding windows_i686_gnu v0.53.1
    Removing windows_i686_gnullvm v0.52.6
    Removing windows_i686_gnullvm v0.53.0
      Adding windows_i686_gnullvm v0.53.1
    Removing windows_i686_msvc v0.52.6
    Removing windows_i686_msvc v0.53.0
      Adding windows_i686_msvc v0.53.1
    Removing windows_x86_64_gnu v0.52.6
    Removing windows_x86_64_gnu v0.53.0
      Adding windows_x86_64_gnu v0.53.1
    Removing windows_x86_64_gnullvm v0.52.6
    Removing windows_x86_64_gnullvm v0.53.0
      Adding windows_x86_64_gnullvm v0.53.1
    Removing windows_x86_64_msvc v0.52.6
    Removing windows_x86_64_msvc v0.53.0
      Adding windows_x86_64_msvc v0.53.1
    Updating winnow v0.7.12 -> v0.7.13
      Adding wit-bindgen v0.46.0
    Removing wit-bindgen-rt v0.39.0
    Updating writeable v0.6.1 -> v0.6.2
    Updating yoke v0.8.0 -> v0.8.1
    Updating yoke-derive v0.8.0 -> v0.8.1
    Updating zerotrie v0.2.2 -> v0.2.3
    Updating zerovec v0.11.4 -> v0.11.5
    Updating zerovec-derive v0.11.1 -> v0.11.2
2025-11-11 19:29:13 +00:00
Mads Marquart
65f0b7aad4 Fix building rustdoc and clippy with jemalloc feature 2025-11-11 20:16:16 +01:00
Mads Marquart
dd2159e75d Simplify jemalloc setup
Using the new `override_allocator_on_supported_platforms` feature in
`tikv-jemalloc-sys v0.6.1` we can avoid the manual statics.
2025-11-11 20:16:15 +01:00
Ralf Jung
13b8cf5faf
Merge pull request #4678 from folkertdev/ternary-logic
add shim for avx512 ternarylogic functions
2025-11-11 18:12:27 +00:00
Guillaume Gomez
4d3d3b39bd Improve code 2025-11-11 18:45:36 +01:00
Folkert de Vries
050412a5ab
add shim for avx512 ternarylogic functions 2025-11-11 18:39:58 +01:00
bors
25d319a0f6 Auto merge of #148658 - dianne:cleanup-rvalue-scopes, r=cjgillot
cleanup: merge `RvalueScopes` into `ScopeTree`

This gets rid of `RvalueCandidate`, inlines the definition of `RvalueScopes` into `ScopeTree`, and removes two `RvalueScopes`-specific modules, consolidating the scoping logic a bit. Removing the extra step of going from `RvalueCandidate`s to `RvalueScopes` and removing the duplication between them should also hopefully improve perf.

I've also taken the liberty of doing a bit of renaming and comment updates, changing some "rvalue scope"s to "extended temporary scope"s. This is a bit closer to the Reference's terminology and makes it clearer that it's specific to temporary lifetime extension. This isn't comprehensive. In particular, I've left `record_rvalue_scope_if_borrow_expr` untouched since rust-lang/rust#146098 gets rid of it.

Pulled out from rust-lang/rust#146098.

r? BoxyUwU as the reviewer of rust-lang/rust#146098 (though feel free to reassign/claim! this is just cleanup)

cc `@dingxiangfei2009`
2025-11-11 17:23:11 +00:00
Guillaume Gomez
f4e1ffc55e Add missing documentation 2025-11-11 17:41:17 +01:00
Guillaume Gomez
dacabcd20d Update jump to def macro link generation test 2025-11-11 17:41:17 +01:00
Guillaume Gomez
04f798b83a Fix invalid jump to def macro link generation 2025-11-11 17:41:17 +01:00
Romain Perier
c8c04663c5 Add a note when a type implements a trait with the same name as the required one
This is useful when you have two dependencies that use different trait for
the same thing and with the same name. The user can accidentally implement
the bad one which might be confusing. This commits refactorizes existing
diagnostics about multiple different crates with the same version and adds
a note when similarly named traits are found. All diagnostics are merged
into a single one.
2025-11-11 17:36:43 +01:00