Commit Graph

335901 Commits

Author SHA1 Message Date
Mark Rousskov
7253b2ba61 Stabilize fs_set_times
This stabilizes both functions under this feature gate:

* `std::fs::set_times`
* `std::fs::set_times_nofollow`
2026-08-09 18:26:24 -04:00
bors
969b803cbe Auto merge of #160814 - JonathanBrouwer:rollup-5WAvt58, r=JonathanBrouwer
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#160782 (rustc_attr_ir: fix up `lang_items` imports)
 - rust-lang/rust#159746 (stabilize `c_variadic_naked_functions`)
 - rust-lang/rust#160141 (Refactor tidy detection of stability attribute)
 - rust-lang/rust#160744 (make more diagnostic structs pub(crate))
 - rust-lang/rust#160778 (Add regression test for cycle error on guaranteed unsized self type)
 - rust-lang/rust#160779 (arm64ec: `f128` is supported since LLVM 23)
 - rust-lang/rust#160781 (Add regression test for save temps ICE on incremental recompile)
 - rust-lang/rust#160792 (User facing .expect now follows “expect as precondition" style)
 - rust-lang/rust#160796 (Change .expect message to follow precondition style)
2026-08-09 16:51:31 +00:00
Jonathan Brouwer
51e3439408 Rollup merge of #160796 - Nidhi-Gahlawat:issue-159751-fix-mod.rs, r=nia-e
Change .expect message to follow precondition style
2026-08-09 18:22:31 +02:00
Jonathan Brouwer
140e8bf50e Rollup merge of #160792 - TirushOne:issue-159751-fix-tcp-, r=Mark-Simulacrum
User facing .expect now follows “expect as precondition" style

Related issue: https://github.com/rust-lang/rust/issues/159751

Updated .expect error message in std/src/net/tcp.rs to follow “expect as precondition" style.
2026-08-09 18:22:30 +02:00
Jonathan Brouwer
374ec00512 Rollup merge of #160781 - zakrad:regr-test-66367, r=mejrs
Add regression test for save temps ICE on incremental recompile

Closes rust-lang/rust#66367 adds an incremental regression test for adding -C save-tempsthat used to ICE
2026-08-09 18:22:29 +02:00
Jonathan Brouwer
6b00b67b44 Rollup merge of #160779 - folkertdev:arm64ec-f128, r=tgross35
arm64ec: `f128` is supported since LLVM 23

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

- [x] I did not use an LLM to create a change in this PR.
- [ ] I used an LLM to create a change in this PR, and I have explained below how it was used.

Related

- https://github.com/llvm/llvm-project/issues/94434
- https://github.com/llvm/llvm-project/pull/206980

cc @dpaoliello (feel free to approve also, and maybe you can validate this in practice?)
r? tgross35
2026-08-09 18:22:29 +02:00
Jonathan Brouwer
eab3d62561 Rollup merge of #160778 - zakrad:regr-test-116914, r=JonathanBrouwer
Add regression test for cycle error on guaranteed unsized self type

Closes rust-lang/rust#116914 the solver now detects the cycle and errors, which this pins
2026-08-09 18:22:28 +02:00
Jonathan Brouwer
c10876b8a1 Rollup merge of #160744 - mejrs:struct-diagnostics-privacy, r=JonathanBrouwer
make more diagnostic structs pub(crate)
2026-08-09 18:22:27 +02:00
Jonathan Brouwer
229984d7c6 Rollup merge of #160141 - ChayimFriedman2:multiline-stable-tidy, r=Mark-Simulacrum
Refactor tidy detection of stability attribute

And fix support for multi-line attributes. And add some tests.

Necessary for https://github.com/rust-lang/rust/pull/160108 which confused tidy.
2026-08-09 18:22:26 +02:00
Jonathan Brouwer
df04ad29b7 Rollup merge of #159746 - folkertdev:stabilize-c-variadic-naked-functions, r=tiif
stabilize `c_variadic_naked_functions`

tracking issue: https://github.com/rust-lang/rust/issues/148767
reference PR: https://github.com/rust-lang/reference/pull/2321

# Stabilization report

## Summary

Stabilize the ability to use `#[unsafe(naked)]` functions to define c-variadic functions. These c-variadic naked functions accept the same set of ABIs as c-variadic foreign functions, this set is larger than what we currently accept for c-variadic definitions.

```rust
#[unsafe(naked)]
unsafe extern "aapcs" fn variadic_aapcs(_: f64, _: ...) -> f64 {
    core::arch::naked_asm!(
        r#"
        sub     sp, sp, #12
        stmib   sp, {{r2, r3}}
        vmov    d0, r0, r1
        add     r0, sp, #4
        vldr    d1, [sp, #4]
        add     r0, r0, #15
        bic     r0, r0, #7
        vadd.f64        d0, d0, d1
        add     r1, r0, #8
        str     r1, [sp]
        vldr    d1, [r0]
        vadd.f64        d0, d0, d1
        vmov    r0, r1, d0
        add     sp, sp, #12
        bx      lr
    "#,
    )
}
```

## Accepted ABIs

The set of accepted ABIs is the same as for c-variadic foreign functions, defined as rule [`items.extern.variadic.conventions`](https://doc.rust-lang.org/nightly/reference/items/external-blocks.html?highlight=externblo#r-items.extern.variadic.conventions):

- `"aapcs"`
- `"C"`
- `"cdecl"`
- `"efiapi"`
- `"system"`
- `"sysv64"`
- `"win64"`

And their corresponding `-unwind` variants. Given that naked functions desugar to a block of module assembly and a foreign definition, it makes sense to support the same set as source-level foreign definitions.

For c-variadic definitions we only accept `"C"` and `"C-unwind"`.

## Multiple c-variadic ABIs in the same program

LLVM supports c-variadic calls of different ABIs in the same program. We test both an arm and x86 configuration

- 771916f902/tests/ui/c-variadic/same-program-multiple-abis-arm.rs
- 771916f902/tests/ui/c-variadic/same-program-multiple-abis-x86_64.rs

Note that GCC, Clang and LLVM do not support c-variadic definitions of multiple ABIs: the `va_start`, `va_arg` etc. macros are always expanded using the default C calling convention. Clang and GCC reject a variable argument list on definitions that use a non-default calling convention.

## History

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

The stabilization report of `feature(c_variadic)` mentions this feature:

- https://github.com/rust-lang/rust/pull/155697

## Unresolved questions

None.
2026-08-09 18:22:26 +02:00
Jonathan Brouwer
92114e1e80 Rollup merge of #160782 - mejrs:attr_imports, r=JonathanBrouwer
rustc_attr_ir: fix up `lang_items` imports

Cleanup after splitting attributes from rustc_hir.

It's a big one and maybe annoying to merge without conflicts but I figured it's best to just get it done and over with. If it turns out to be too big to merge at once it should be possible to split it up tho :>

r? @JonathanBrouwer
2026-08-09 18:22:24 +02:00
bors
5c16940f0d Auto merge of #160674 - scottmcm:wait-what-happened, r=folkertdev
Usually avoid the sort in `WrappingRange::smallest_range_containing`

I wasn't planning on touching this [again](https://github.com/rust-lang/rust/pull/160198), but I had a shower thought: we've been sorting these [for a while](https://github.com/rust-lang/rust/pull/144577/changes#diff-122bc02528abab33fa6f367f937c00f22eb4d3dc95b6a83a807576b5271ca462R776) because that's better than doing a quadratic check for usable wraparound ranges, but actually we often don't need to.

So long as the obvious `min..=max` range is small enough, we don't need to bother even looking for a wrapping range!

Now, I don't think this code is particularly hot -- you'd need lots of enums or particularly big ones before it would really matter -- but this does let us short-circuit for even fairly complex enums like [mem::alignment](88f7399cb4/library/core/src/mem/alignment.rs (L402-L435)).

---
2026-08-09 13:51:50 +00:00
mejrs
196dd2a174 Fix up lang_items import paths 2026-08-09 15:20:29 +02:00
Nidhi Gahlawat
b81a0d603f Change .expect message to follow precondition style 2026-08-09 15:34:35 +05:30
Jed McKenna
efdcd0d725 Changed .expect error message in documentation to follow “expect as precondition” style. 2026-08-09 16:51:06 +10:00
Chayim Refael Friedman
5afb1fed3e Refactor tidy detection of stability attribute
And fix support for multi-line attributes. And add some tests.
2026-08-09 09:42:32 +03:00
bors
153ecc4f74 Auto merge of #160789 - jhpratt:rollup-zFeRr02, r=jhpratt
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#158517 (Initial implementation of named `Fn` trait parameters)
 - rust-lang/rust#158587 (check if len of array const arg matches the expected len of the type when lowering to valtree)
 - rust-lang/rust#160748 (Add regression test for cross-crate assoc const private field leak in rustdoc)
 - rust-lang/rust#160708 (remove old update mechanism)
 - rust-lang/rust#160768 (Fix autodiff_illegal.rs test)
2026-08-09 05:15:16 +00:00
Jacob Pratt
f5c9a7278d Rollup merge of #160768 - JonathanBrouwer:fix_autodiff_ci, r=mejrs,ZuseZ4
Fix autodiff_illegal.rs test

This fixes the current CI failure: https://github.com/rust-lang/rust/pull/160761#issuecomment-5227338720

r? @ZuseZ4
2026-08-08 23:51:59 -04:00
Jacob Pratt
d023954406 Rollup merge of #160708 - marcoieni:remove-old-update-mechanism, r=Mark-Simulacrum
remove old update mechanism
2026-08-08 23:51:58 -04:00
Jacob Pratt
1dc2a9edff Rollup merge of #160748 - zakrad:regr-test-99630, r=GuillaumeGomez
Add regression test for cross-crate assoc const private field leak in rustdoc

Closes rust-lang/rust#99630 adds a rustdoc test, reexporting a type must not leak the private field
2026-08-08 23:51:57 -04:00
Jacob Pratt
fec8cd51b7 Rollup merge of #158587 - sjwang05:issue-155168, r=JohnTitor
check if len of array const arg matches the expected len of the type when lowering to valtree

When creating valtrees for arrays passed as const args in `lower_const_arg_array`, we assume the array has the correct length without actually checking the length of the arg, leading to UB at runtime (rust-lang/rust#155168) or an ICE during CTFE (rust-lang/rust#151079). This PR adds a check comparing the expected length of the type with the actual number of elements, similar to `lower_const_arg_tup`.

fixes rust-lang/rust#155168
2026-08-08 23:51:56 -04:00
Jacob Pratt
3820cc943d Rollup merge of #158517 - JonathanBrouwer:named_fn_trait_parameters, r=JohnTitor
Initial implementation of named `Fn` trait parameters

This is an initial implementation of the feature `named_fn_trait_parameters`.
This implementation is incomplete (and also marked as such) , and needs significant further changes to be implemented correctly. To keep the size of this PR managable, I propose we do this in follow-up PRs.
I've added a test that shows the current behaviour, with `FIXME` comments where the test output is currently incorrect.

Tracking issue: https://github.com/rust-lang/rust/issues/158499
Accepted RFC: https://github.com/rust-lang/rfcs/pull/3955
2026-08-08 23:51:55 -04:00
Folkert de Vries
82b020e8f1 arm64ec: f128 is supported since LLVM 23 2026-08-09 00:03:45 +02:00
zakrad
d63ff51706 Add regression test for guaranteed unsized self type cycle 2026-08-09 01:15:26 +03:30
bors
4667d75565 Auto merge of #160774 - JonathanBrouwer:rollup-T3y1It9, r=JonathanBrouwer
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#156935 (Introduce a `PinSafePointer` trait that generalizes `PinCoerceUnsized`)
 - rust-lang/rust#159834 (Apply str debugger visualizer to `*const str`, `*mut str` and `Box<str>`)
 - rust-lang/rust#160663 (Suggest add async for function sig with return expr in body)
 - rust-lang/rust#160732 (Optimize slice::contains for one-byte BytewiseEq types)
 - rust-lang/rust#157944 (Make `char::is_default_ignorable` unstably public)
 - rust-lang/rust#158835 (rustc_passes: lint unused `#[path]` attributes on inline modules)
 - rust-lang/rust#160754 (Rename more diagnostic files to `diagnostics.rs`)
 - rust-lang/rust#160755 (Merge `rustc_lint/lints.rs` into `diagnostics.rs`)
 - rust-lang/rust#160757 (Merge `rustc_attr_parsing/session_diagnostics.rs` into `diagnostics.rs`)
2026-08-08 21:44:46 +00:00
Jonathan Brouwer
acd2f65375 Add expected error messages to autodiff_illegal.rs 2026-08-08 22:40:03 +02:00
Jonathan Brouwer
3da16bbcd2 Rollup merge of #160757 - JonathanBrouwer:attr_parsing_diagnostics, r=GuillaumeGomez
Merge `rustc_attr_parsing/session_diagnostics.rs` into `diagnostics.rs`

Renaming diagnostics files to all be diagnostics.rs, per the decision in https://github.com/rust-lang/compiler-team/issues/1003

r? @GuillaumeGomez
2026-08-08 22:16:49 +02:00
Jonathan Brouwer
487d6a616c Rollup merge of #160755 - JonathanBrouwer:rustc_lint_diags, r=GuillaumeGomez
Merge `rustc_lint/lints.rs` into `diagnostics.rs`

Renaming diagnostics files to all be diagnostics.rs, per the decision in https://github.com/rust-lang/compiler-team/issues/1003

r? @GuillaumeGomez
2026-08-08 22:16:48 +02:00
Jonathan Brouwer
f78e590a8a Rollup merge of #160754 - JonathanBrouwer:diagnostic_renames1, r=GuillaumeGomez
Rename more diagnostic files to `diagnostics.rs`

Renaming diagnostics files to all be `diagnostics.rs`, per the decision in https://github.com/rust-lang/compiler-team/issues/1003
PR was created by doing a file rename using the editor actions of my IDE, and then running `./x fmt`

r? @GuillaumeGomez @nnethercote
Whoever of you gets to it first :)
2026-08-08 22:16:48 +02:00
Jonathan Brouwer
2a8d31ae58 Rollup merge of #158835 - ravlynd:fix/warn-path-attribute, r=JonathanBrouwer
rustc_passes: lint unused `#[path]` attributes on inline modules

Closes rust-lang/rust#157260.

This PR emits the `unused_attributes` lint for `#[path]` attributes on inline modules when the attribute is unused.

It also adds UI tests covering both linted and non-linted cases.

r? @theemathas
2026-08-08 22:16:47 +02:00
Jonathan Brouwer
c31da22f76 Rollup merge of #157944 - Jules-Bertholet:is-default-ignorable, r=Mark-Simulacrum
Make `char::is_default_ignorable` unstably public

Similar to https://github.com/rust-lang/rust/pull/154849; this function is used in the implementation of `char::escape_debug()`, and there's no reason to force crates to duplicate a data table that std has to ship anyway.

I'll add a tracking issue if this is approved.

(I'll do the other data tables from https://github.com/rust-lang/rust/pull/155527 in separate PRs.)

@rustbot label A-Unicode T-libs-api

Tracking issue: rust-lang/rust#160583

r? @Mark-Simulacrum
2026-08-08 22:16:46 +02:00
Jonathan Brouwer
cc2a0a42c2 Rollup merge of #160732 - SomeFlyingThing:agent/optimize-bytewise-contains, r=joboet
Optimize slice::contains for one-byte BytewiseEq types

add optimized searches for NonZeroI8, option<NonZeroI8> ordering, and other one-byte types
2026-08-08 22:16:46 +02:00
Jonathan Brouwer
a7c3bd1bed Rollup merge of #160663 - chenyukang:yukang-fix-159495-suggest-async-return-future, r=estebank
Suggest add async for function sig with return expr in body

Fixes rust-lang/rust#159495

r? @estebank
2026-08-08 22:16:45 +02:00
Jonathan Brouwer
103f5d6831 Rollup merge of #159834 - Walnut356:ptr_str, r=Mark-Simulacrum
Apply str debugger visualizer to `*const str`, `*mut str` and `Box<str>`

Fairly straightforward. Note that the MSVC changes very likely aren't exercised by CI. My GSoC project is actively working on fixing that, but in the meantime i can personally verify that it works (note that the `ref$<str$> *` type name confirms this is MSVC):

<img width="318" height="138" alt="image" src="https://github.com/user-attachments/assets/fd868f16-d9a5-438a-a155-a429771bf525" />
2026-08-08 22:16:45 +02:00
Jonathan Brouwer
1060853801 Rollup merge of #156935 - Darksonn:pin-safe-pointer, r=Mark-Simulacrum
Introduce a `PinSafePointer` trait that generalizes `PinCoerceUnsized`

This PR renames `PinCoerceUnsized` to `PinSafePointer` and adds several new safety requirements about the implementations of various safe traits.

Closes: rust-lang/rust#152667
Closes: rust-lang/rust#147794

~~With this merged, the only remaining soundness issues with `Pin` are:~~
* rust-lang/rust#134407
* The fact that `CoercePointee` may be implemented on `Pin<LocalType>` in downstream crates. (unstable only)

For your convenience here are the docs for the new trait:

# `PinSafePointer`

Trait that indicates that this is a pointer that does not misbehave when combined with `Pin`.

Note that for backwards compatibility reasons, it is possible to create a `Pin<P>` for pointer types `P` that do not implement this trait. However, this can only be done safely if `<P as Deref>::Target` implements `Unpin`, which means that pinning has no effect.

# Safety

Types that implement this trait must not provide "malicious" implementations of any safe traits used by `Pin`.

## The pointer must always reference the same object

Calls to [`deref`]/[`deref_mut`] on the same `Pin<P>` instance must always refer to the same object. That is, the address returned by these methods must not change. This applies even if the pointer type is moved.

Furthermore, if the pointer type can participate in unsizing coercions or dynamic dispatch, then these coercions must also not change the underlying concrete type. Here, the concrete type of a trait object is the type that the vtable corresponds to. The concrete type of a slice is an array of the same element type and the length specified in the metadata. The concrete type of a sized type is the type itself.

As an example, after unsizing coercing a pinned pointer, `deref_mut` must not return a `#[repr(transparent)]` wrapper around the value it referenced before being unsized, even if the address is unchanged.

## The pointer must not move its pointee

The [`deref_mut`] method and the pointer type's destructor are called with a `&mut self` receiver, but they must behave as-if it was a `self: Pin<&mut Self>` receiver. That is, they must not move out of the underlying value.

As an example, `deref_mut` must not invoke `swap` on the inner value.

## Shared access to the pointer

If this pointer type uses `&P` references as evidence that this value is not pinned, then it must not treat the `&self` argument passed to [`Clone`] or the formatting traits (`fmt::Debug`, `fmt::Display`, `fmt::Pointer`) as such evidence.

As an example, given a `Pin<Arc<T>>` there is no way to obtain an `&Arc<T>` (note that `Deref` just gives a `&T`). Because of this, the [`Arc`] type can assume that an `&Arc<T>` value can only exist if the `T` is not pinned, which justifies the soundness of the [`Arc::get_mut`] method.

## Cloning pinned pointers

When a `Pin<P>` is cloned, the `P` pointer value returned by `clone` is passed to [`Pin::new_unchecked`]. The implementation of [`Clone`] must return a value such that this is sound.

For example, when a `Pin<&T>` is cloned, the resulting `&T` points at the same value. The value is known to be pinned since a `Pin<&T>` to it exists, so it is safe to wrap the `&T` returned by `clone` in `Pin`.

[`deref`]: https://doc.rust-lang.org/stable/core/ops/trait.Deref.html#tymethod.deref
[`deref_mut`]: https://doc.rust-lang.org/stable/core/ops/trait.DerefMut.html#tymethod.deref_mut
[`clone`]: https://doc.rust-lang.org/stable/core/clone/trait.Clone.html#tymethod.clone
[`Clone`]: https://doc.rust-lang.org/stable/core/clone/trait.Clone.html
[`Arc`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html
[`Arc::get_mut`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.get_mut
[`Pin::new_unchecked`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.new_unchecked

r? lcnr
2026-08-08 22:16:44 +02:00
ravlyn
7b1731bf82 rustc_passes: lint unused #[path] attributes on inline modules 2026-08-08 22:15:13 +02:00
zakrad
2586cedc4a Add regression test for save-temps ICE on incremental recompile 2026-08-08 23:41:55 +03:30
zakrad
1a049129e6 Add regression test for cross-crate assoc const private field leak 2026-08-08 23:10:17 +03:30
bors
771916f902 Auto merge of #160761 - JonathanBrouwer:rollup-VhQ1GtJ, r=JonathanBrouwer
Rollup of 12 pull requests

Successful merges:

 - rust-lang/rust#160336 (Move attributes out of rustc_hir)
 - rust-lang/rust#160715 (ignore tests with the GCC backend if we can't find `libgccjit.so` for the target)
 - rust-lang/rust#157609 (fix: build-std on 32 bit arm with 64 bit time)
 - rust-lang/rust#160613 (Add regression test for unsized non-last struct field with overlapping impls)
 - rust-lang/rust#160658 (miri: implement more restrictive trivial-ABI checks)
 - rust-lang/rust#160704 (sort lint names in lint pass declarations)
 - rust-lang/rust#160707 (Add regression test for higher ranked fn pointer impl not general enough)
 - rust-lang/rust#160713 (Add regression test for rust-lang/rust#135287)
 - rust-lang/rust#160720 (triagebot: add ubiratan to infra-ci)
 - rust-lang/rust#160747 (rustc_errors: remove unused code)
 - rust-lang/rust#160751 (Add regression test for incremental borrowck ICE with generic const exprs)
 - rust-lang/rust#160753 (rustc_lint: remove unused rustc_attrs feature)

Failed merges:

 - rust-lang/rust#158835 (rustc_passes: lint unused `#[path]` attributes on inline modules)
2026-08-08 16:59:41 +00:00
SomeFlyingThing
538b303655 Apply rustfmt to SliceContains 2026-08-08 09:04:54 -07:00
SomeFlyingThing
c0a4462a23 Use transmute_copy in SliceContains 2026-08-08 08:55:05 -07:00
Jules Bertholet
9846cb6f3f Make char::is_default_ignorable unstably public
* Make `char::is_default_ignorable` unstably public
* Add tracking issue

Co-authored-by: Jules Bertholet <jules@bertholet.email>
2026-08-08 15:08:13 +00:00
Jonathan Brouwer
73d2955bd4 Rollup merge of #160753 - mejrs:remove_rustc_attrs, r=JonathanBrouwer
rustc_lint: remove unused rustc_attrs feature
2026-08-08 16:32:51 +02:00
Jonathan Brouwer
d93da7643d Rollup merge of #160751 - zakrad:regr-test-125564, r=JonathanBrouwer
Add regression test for incremental borrowck ICE with generic const exprs

Adds an incremental regression test for rust-lang/rust#125564 for generic-const exprs snippet, now reports errors cleanly

Closes https://github.com/rust-lang/rust/issues/125564
2026-08-08 16:32:50 +02:00
Jonathan Brouwer
8e0aaa4858 Rollup merge of #160747 - mejrs:unused_impls, r=GuillaumeGomez,JonathanBrouwer
rustc_errors: remove unused code

r? @GuillaumeGomez
2026-08-08 16:32:49 +02:00
Jonathan Brouwer
08b1c1773a Rollup merge of #160720 - ubiratansoares:u/infra-triage-self-onboard, r=jieyouxu
triagebot: add ubiratan to infra-ci

Pretty much self-explained :)

 r? @marcoieni
2026-08-08 16:32:48 +02:00
Jonathan Brouwer
7c693f53d7 Rollup merge of #160713 - lsunsi:push-nsovwvzypopn, r=JonathanBrouwer
Add regression test for #135287

Fixes rust-lang/rust#135287.
This PR adds a test that fails on commit a580b5c379 and works on main.
2026-08-08 16:32:48 +02:00
Jonathan Brouwer
45049bdf79 Rollup merge of #160707 - zakrad:regr-test-57936, r=TaKO8Ki
Add regression test for higher ranked fn pointer impl not general enough

Closes rust-lang/rust#57936 adds a regression test for higher ranked fn-pointer impl is now correctly rejected
2026-08-08 16:32:47 +02:00
Jonathan Brouwer
cba529b5fb Rollup merge of #160704 - folkertdev:sort-lint-names, r=JonathanBrouwer
sort lint names in lint pass declarations

When adding a new lint, you'd naturally add the new lint at the bottom, and would have to deal with merge conflicts with all other PRs that also add a lint. Sorting the list should at least mitigate that, and is probably more readable overall.
2026-08-08 16:32:46 +02:00
Jonathan Brouwer
945feb063f Rollup merge of #160658 - RalfJung:trivial-abi, r=oli-obk
miri: implement more restrictive trivial-ABI checks

This implements the rules from rust-lang/rust#157973 in Miri. We unfortunately have to reject some code that we thought was okay. Let's land this in Miri ahead of anything official also to see if there's any major breakage from that.

r? @oli-obk
2026-08-08 16:32:45 +02:00