Skip to content

Merge subtree update for toolchain nightly-2025-03-18 - #309

Merged
carolynzech merged 10000 commits into
mainfrom
sync-2025-03-18
Apr 1, 2025
Merged

carolynzech merged 10000 commits into
mainfrom
sync-2025-03-18

Conversation

@github-actions

@github-actions github-actions Bot commented Apr 1, 2025

Copy link
Copy Markdown

This is an automated PR to merge library subtree updates from 2025-03-17 (rust-lang/rust@227690a) to 2025-03-18 (rust-lang/rust@43a2e9d), 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: 8902bd3

folkertdev and others added 30 commits March 1, 2025 00:18
these all also accept integer vectors as arguments
this is because they may be widened, and that only works when sign extension is used: zero extension would produce invalid results
This patch makes BufReader::peek()'s doctest call read_more() to refill
the buffer before the inner reader hits EOF. This exposes a bug in
read_more() that causes an out-of-bounds slice access and segfault.
Buffer::read_more() is supposed to refill the buffer without discarding
its contents, which are in the range `pos .. filled`.

It mistakenly borrows the range `pos ..`, fills that, and then
increments `filled` by the amount read. This overwrites the buffer's
existing contents and sets `filled` to a too-large value that either
exposes uninitialized bytes or walks off the end of the buffer entirely.

This patch makes it correctly fill only the unfilled portion of the
buffer, which should maintain all the type invariants and fix the test
failure introduced in commit b119671.
…oss35

checked_ilog tests: deal with a bit of float imprecision

Fixes rust-lang#137591

r? `@tgross35`
Use correct error message casing for `io::const_error`s

Error messages are supposed to start with lowercase letters, but a lot of `io::const_error` messages did not. This fixes them to start with a lowercase letter.
I did consider adding a const check for this to the macro, but some of them start with proper nouns that make sense to uppercase them.

See https://doc.rust-lang.org/1.85.0/std/error/trait.Error.html
…s, r=workingjubilee

Fix inaccurate `std::intrinsics::simd` documentation

This addresses two issues:

- the docs on comparison operators (`simd_gt` etc.) said they only work for floating-point vectors, but they work for integer vectors too.
- the docs on various functions that use a mask did not document that the mask must be a signed integer vector. Unsigned integer vectors would cause invalid behavior when the mask vector is widened (unsigned integers would use zero extension, producing incorrect results).

r? ``@workingjubilee``
- Some UEFI protocols such as TCP4, TCP6, UDP4, UDP6, etc are managed by
  service binding protocol.
- A new instance of such protocols is created and destroyed using the
  corresponding service binding protocol.
- This PR adds abstractions to make using such protocols simpler using
  Rust Drop trait.
- The reason to add these abstractions in a seperate PR from TCP4
  Protocol is to make review easier.

[EFI_SERVICE_BINDING_PROTCOL](https://uefi.org/specs/UEFI/2.11/11_Protocols_UEFI_Driver_Model.html#efi-service-binding-protocol)

Signed-off-by: Ayush Singh <[email protected]>
Includes a change to make a subset of math symbols available on all
platforms [1], and disables `f16` on aarch64 without neon [2].

[1]: rust-lang/compiler-builtins#763
[2]: rust-lang/compiler-builtins#775
One-sided ranges are never empty
LLVM has crashes at some `half` operations when built with assertions
enabled if fp-armv8 is not available [1]. Things seem to usually work,
but we are reaching LLVM undefined behavior so this needs to be
disabled.

[1]: llvm/llvm-project#129394
These constants can be useful outside of their current module. Make them
`pub(crate)` to allow for this.
Fix or elaborate existing float parsing documentation. This includes
introducing a convention that should make naming more consistent.
This module currently contains two decimal types, `Decimal` and
`Number`. These names don't provide a whole lot of insight into what
exactly they are, and `Number` is actually the one that is more like an
expected `Decimal` type.

In accordance with this, rename the existing `Decimal` to `DecimalSeq`.
This highlights that it contains a sequence of decimal digits, rather
than representing a base-10 floating point (decimal) number.

Additionally, add some tests to validate internal behavior.
The previous commit renamed `Decimal` to `DecimalSeq`. Now, rename the
type that represents a decimal floating point number to be `Decimal`.

Additionally, add some tests for internal behavior.
A lot of the magic constants can be turned into expressions. This
reduces some code duplication.

Additionally, add traits to make these operations fully generic. This
will make it easier to support `f16` and `f128`.
This is just a bit of code cleanup to make use of returning early.
This is an attempt to fix rust-lang#135087 together with rust-lang#135886, but I am not sure if I've succeeded in adding much clarity here, so don't be shy with your comments.
- UEFI device path is a series of nodes layed out in a contiguous memory
  region. So it makes sense to use Iterator abstraction for modeling
  DevicePaths
- This PR has been split off from rust-lang#135368 for easier review. The allow
  dead_code will be removed in rust-lang#135368

Signed-off-by: Ayush Singh <[email protected]>
…, r=Mark-Simulacrum

Minor internal comments fix for `BufRead::read_line`

Just a little fix that came up while I was reading through this source code, and had to search for a few minutes to find out what was actually *meant* here.
More precisely document `Global::deallocate()`'s safety.

There is a subtlety which "other conditions must be upheld by the caller" does not capture: `GlobalAlloc`/`alloc::dealloc()` require that the provided layout will be *equal*, not just that it "fits", the layout used to allocate. This is always true here due to how `allocate()`, `grow()`, and `shrink()` are implemented (they never return a larger allocation than requested), but that is a non-local property of the implementation, so it should be documented explicitly.

r? libs

`@rustbot` label A-allocators
…ct, r=scottmcm

fix `RangeBounds::is_empty` documentation

One-sided ranges are never empty

follow-up for rust-lang#137304 (review)
… r=workingjubilee

Disable `f16` on Aarch64 without `neon`

LLVM has crashes at some `half` operations when built with assertions enabled if fp-armv8 is not available [1]. Things seem to usually work, but we are reaching LLVM undefined behavior so this needs to be disabled.

[1]: llvm/llvm-project#129394
this doesn't fix any bugs, it just looks more consistent with the other impl's
…imulacrum

Make phantom variance markers transparent
…iaskrgr

Rollup of 12 pull requests

Successful merges:

 - rust-lang#135767 (Future incompatibility warning `unsupported_fn_ptr_calling_conventions`: Also warn in dependencies)
 - rust-lang#137852 (Remove layouting dead code for non-array SIMD types.)
 - rust-lang#137863 (Fix pretty printing of unsafe binders)
 - rust-lang#137882 (do not build additional stage on compiler paths)
 - rust-lang#137894 (Revert "store ScalarPair via memset when one side is undef and the other side can be memset")
 - rust-lang#137902 (Make `ast::TokenKind` more like `lexer::TokenKind`)
 - rust-lang#137921 (Subtree update of `rust-analyzer`)
 - rust-lang#137922 (A few cleanups after the removal of `cfg(not(parallel))`)
 - rust-lang#137939 (fix order on shl impl)
 - rust-lang#137946 (Fix docker run-local docs)
 - rust-lang#137955 (Always allow rustdoc-json tests to contain long lines)
 - rust-lang#137958 (triagebot.toml: Don't label `test/rustdoc-json` as A-rustdoc-search)

r? `@ghost`
`@rustbot` modify labels: rollup
bors and others added 17 commits March 16, 2025 14:23
… r=jhpratt

Optimize multi-char string patterns

Uses specialization for `[T]::contains` from rust-lang#130991 to optimize multi-char patterns in string searches.
Requesting a perf run to see if this actually has an effect 🙏
(I think that adding `char` to the list of types for which the `SliceContains` is specialized is a good idea, even if it doesn't show up on perf - might be helpful for downstream users)
It's bitflags in practice, so an enum is unsound, as an enum must only
have the described values. The x86_64 psABI declares it as a `typedef
int _Unwind_Action`, which seems reasonable. I made a newtype first but
that was more annoying than just a typedef. We don't really use this
value for much other than a short check.
…=Amanieu

Add `From<{integer}>` for `f16`/`f128` impls

This PR adds `impl From<{bool,i8,u8}> for f16` and `impl From<{bool,i8,u8,i16,u16,i32,u32}> for f128`.

The `From<{i64,u64}> for f128` impls are left commented out as adding them would allow using `f128` on stable before it is stabilised like in the following example:
```rust
fn f<T: From<u64>>(x: T) -> T { x }

fn main() {
    let x = f(1.0); // the type of the literal is inferred to be `f128`
}
```
None of the impls added in this PR have this issue as they are all, at minimum, also implemented by `f64`.

This PR will need a crater run for the `From<{i32,u32}>` impls, as `f64` is no longer the only float type to implement them (similar to the cause of rust-lang#125198).

cc `@bjoernager`
r? `@tgross35`

Tracking issue: rust-lang#116909
document capacity for ZST as example

The main text already covers this, although it provides weaker guarantees, but I think an example in the right spot does not hurt. Fixes rust-lang#80747
doc all differences of ptr:copy(_nonoverlapping) with memcpy and memmove

Fixes rust-lang#79430
…, r=workingjubilee

Make `_Unwind_Action` a type alias, not enum

It's bitflags in practice, so an enum is unsound, as an enum must only have the described values. The x86_64 psABI declares it as a `typedef int _Unwind_Action`, which seems reasonable. I made a newtype first but that was more annoying than just a typedef. We don't really use this value for much other than a short check.

I ran `x check library --target aarch64-unknown-linux-gnu,x86_64-pc-windows-gnu,x86_64-fortanix-unknown-sgx,x86_64-unknown-haiku,x86_64-unknown-fuchsi
a,x86_64-unknown-freebsd,x86_64-unknown-dragonfly,x86_64-unknown-netbsd,x86_64-unknown-openbsd,x86_64-unknown-redox,riscv64-linux-android,armv7-unknown-freebsd` (and some more but they failed to build for other reasons :D)

fixes rust-lang#138558

r? workingjubilee have fun
Rollup of 5 pull requests

Successful merges:

 - rust-lang#136293 (document capacity for ZST as example)
 - rust-lang#136359 (doc all differences of ptr:copy(_nonoverlapping) with memcpy and memmove)
 - rust-lang#136816 (refactor `notable_traits_button` to use iterator combinators  instead of for loop)
 - rust-lang#138552 (Misc print request handling cleanups + a centralized test for print request stability gating)
 - rust-lang#138573 (Make `_Unwind_Action` a type alias, not enum)

r? `@ghost`
`@rustbot` modify labels: rollup
…e_retrieval_methods, r=Amanieu

Add `*_value` methods to proc_macro lib

This is the implementation of rust-lang/libs-team#459.

It allows to get the actual value (unescaped) of the different string literals.

Part of rust-lang#136652.

r? libs-api
…r=joshtriplett

Stablize anonymous pipe

Since rust-lang#135822 is staled, I create this PR to stablise anonymous pipe

Closes rust-lang#127154

try-job: test-various
std: Mention clone-on-write mutation in Arc<T>

Fixes rust-lang#138322

r? libs
…anieu,lnicola

Denote `ControlFlow` as `#[must_use]`

I've repeatedly hit bugs in the compiler due to `ControlFlow` not being marked `#[must_use]`. There seems to be an accepted ACP to make the type `#[must_use]` (rust-lang/libs-team#444), so this PR implements that part of it.

Most of the usages in the compiler that trigger this new warning are "root" usages (calling into an API that uses control-flow internally, but for which the callee doesn't really care) and have been suppressed by `let _ = ...`, but I did legitimately find one instance of a missing `?` and one for a never-used `ControlFlow` value in rust-lang#137448.

Presumably this needs an FCP too, so I'm opening this and nominating it for T-libs-api.

This PR also touches the tools (incl. rust-analyzer), but if this went into FCP, I'd split those out into separate PRs which can land before this one does.

r? libs-api
`@rustbot` label: T-libs-api I-libs-api-nominated
@github-actions
github-actions Bot requested a review from a team as a code owner April 1, 2025 07:48
@tautschnig tautschnig closed this Apr 1, 2025
@tautschnig tautschnig reopened this Apr 1, 2025

@tautschnig tautschnig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving as these are the same changes as in #308 plus the toolchain/Kani config changes. (Nevermind the spurious >= 10k commits as that is just the effect of past squash merges.)

@carolynzech carolynzech left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No merge conflicts 🙌

@carolynzech
carolynzech added this pull request to the merge queue Apr 1, 2025
Merged via the queue into main with commit 7aaa844 Apr 1, 2025
@tautschnig
tautschnig deleted the sync-2025-03-18 branch April 2, 2025 09:43
dkcumming added a commit to runtimeverification/verify-rust-std that referenced this pull request Apr 10, 2026
* Subtree update automation: do not use `git subtree merge --squash` (#292)

`git subtree merge --squash` will always reset the subtree to the state
of the tree that is being merged from, which effectively eradicates all
our local changes. This was just masked by merge conflicts arising as we
were always attempted to merge from some long-ago version as we hadn't
consistently kept "git-subtree-split" markers.

This PR now amends the pull request descriptions to make sure we retain
the necessary information and uses `git merge` instead of the subtree
command.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Merge subtree update for toolchain nightly-2025-03-18 (#309)

This is an automated PR to merge library subtree updates from 2025-03-17
(rust-lang/rust@227690a258492c84ae9927d18289208d0180e62f) to 2025-03-18
(rust-lang/rust@43a2e9d2c72db101f5fedac8b3acb78981b06bf2), 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: 8902bd397a755de86dff7de58c37a5366e402b00

---------

Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: fuyangpengqi <[email protected]>
Signed-off-by: Ookiineko <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Sean Cross <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Co-authored-by: Folkert de Vries <[email protected]>
Co-authored-by: Will Woods <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: Slanterns <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Peter Jaszkowiak <[email protected]>
Co-authored-by: Karol Zwolak <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: Speedy_Lex <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: fuyangpengqi <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Henry Jiang <[email protected]>
Co-authored-by: pcorwin <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: Jubilee <[email protected]>
Co-authored-by: 许杰友 Jieyou Xu (Joe) <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: Oli Scherer <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: Redddy <[email protected]>
Co-authored-by: Eric Huss <[email protected]>
Co-authored-by: Santiago Pastorino <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: Kevin Reid <[email protected]>
Co-authored-by: ltdk <[email protected]>
Co-authored-by: Tobias Decking <[email protected]>
Co-authored-by: Steven Malis <[email protected]>
Co-authored-by: Martin Habovstiak <[email protected]>
Co-authored-by: bdbai <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Jethro Beekman <[email protected]>
Co-authored-by: LemonJ <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: Ookiineko <[email protected]>
Co-authored-by: Nicole LeGare <[email protected]>
Co-authored-by: Nicole LeGare <[email protected]>
Co-authored-by: Nicole L <[email protected]>
Co-authored-by: Arjun Ramesh <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Pavel Grigorenko <[email protected]>
Co-authored-by: Oli Scherer <[email protected]>
Co-authored-by: Jakub Beránek <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: Aurelia Molzer <[email protected]>
Co-authored-by: beetrees <[email protected]>
Co-authored-by: Josh Stone <[email protected]>
Co-authored-by: Manish Goregaokar <[email protected]>
Co-authored-by: ClearLove <[email protected]>
Co-authored-by: Thom Chiovoloni <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Yotam Ofek <[email protected]>
Co-authored-by: Noratrieb <[email protected]>
Co-authored-by: gitbot <git@bot>

* Update Kani Metrics (#305)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Add Challenges 17 18 for slices (#265)

This PR adds:
1. Challenge 17 : for slice functions
2. Chalenge 18: for slice-iter's functions generated by macros

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Carolyn Zech <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>

* Add Challenge 16: Iterator (#260)

In this PR, I add a challenge for Iterator functions in
(library/core/src/iter/adapters)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Carolyn Zech <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>

* Merge subtree update for toolchain nightly-2025-04-01 (#312)

This is an automated PR to merge library subtree updates from 2025-03-18
(rust-lang/rust@43a2e9d2c72db101f5fedac8b3acb78981b06bf2) to 2025-04-01
(rust-lang/rust@0b45675cfcec57f30a3794e1a1e18423aa9cf200) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: c60865a9e2c90a1850f8343960fb23d1aac894a0

---------

Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Sean Cross <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Co-authored-by: Nicole LeGare <[email protected]>
Co-authored-by: Nicole LeGare <[email protected]>
Co-authored-by: Nicole L <[email protected]>
Co-authored-by: Kevin Reid <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: Arjun Ramesh <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Pavel Grigorenko <[email protected]>
Co-authored-by: Oli Scherer <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jakub Beránek <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: Aurelia Molzer <[email protected]>
Co-authored-by: Eric Huss <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: beetrees <[email protected]>
Co-authored-by: Josh Stone <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Berrysoft <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Manish Goregaokar <[email protected]>
Co-authored-by: ClearLove <[email protected]>
Co-authored-by: Thom Chiovoloni <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: Tobias Bucher <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Yotam Ofek <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: 许杰友 Jieyou Xu (Joe) <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Noratrieb <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Ibraheem Ahmed <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Taiki Endo <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: Caleb Zulawski <[email protected]>
Co-authored-by: Jana Dönszelmann <[email protected]>
Co-authored-by: syvb <[email protected]>
Co-authored-by: Sebastian Urban <[email protected]>
Co-authored-by: Bardi Harborow <[email protected]>
Co-authored-by: moxian <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Mads Marquart <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Rafael Bachmann <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* Update Kani Metrics (#316)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Sync the VeriFast proofs and provide guidance on same (#313)

Updates the VeriFast proofs after `linked_list.rs` was modified by
https://github.com/rust-lang/rust/commit/c39f33baae94665d69a45d45a00d0dc028c80cc9
.

Also:
- Added a bash script that attempts to automatically patch the proofs
after the original file was changed.
- The VeriFast CI actions now produce an error alert suggesting to run
this script, if a source file that is the subject of a VeriFast proof is
changed.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Merge subtree update for toolchain nightly-2025-04-04 (#318)

This is an automated PR to merge library subtree updates from 2025-04-01
(rust-lang/rust@0b45675cfcec57f30a3794e1a1e18423aa9cf200) to 2025-04-04
(rust-lang/rust@00095b3da4f23d9b3e7a809ac6a4e2b2530df84c), 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: 0cce469840a731f39efceef764628640e13152b2

---------

Signed-off-by: Sean Cross <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Co-authored-by: Oli Scherer <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jakub Beránek <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: Aurelia Molzer <[email protected]>
Co-authored-by: Eric Huss <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: Nicole L <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: beetrees <[email protected]>
Co-authored-by: Josh Stone <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Berrysoft <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Manish Goregaokar <[email protected]>
Co-authored-by: ClearLove <[email protected]>
Co-authored-by: Thom Chiovoloni <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: Tobias Bucher <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Yotam Ofek <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: 许杰友 Jieyou Xu (Joe) <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Noratrieb <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Ibraheem Ahmed <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Taiki Endo <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: Caleb Zulawski <[email protected]>
Co-authored-by: Jana Dönszelmann <[email protected]>
Co-authored-by: syvb <[email protected]>
Co-authored-by: Sebastian Urban <[email protected]>
Co-authored-by: Bardi Harborow <[email protected]>
Co-authored-by: lcnr <[email protected]>
Co-authored-by: moxian <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Mads Marquart <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Rafael Bachmann <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* Merge subtree update for toolchain nightly-2025-04-06 (#320)

This is an automated PR to merge library subtree updates from 2025-04-04
(rust-lang/rust@00095b3da4f23d9b3e7a809ac6a4e2b2530df84c) to 2025-04-06
(rust-lang/rust@5e17a2a91dd7dbefd8b4a1087c2e42257457deeb) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: a5c66929ceae8c225c1913e67509394276d3ee9e

---------

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: Berrysoft <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Manish Goregaokar <[email protected]>
Co-authored-by: Josh Stone <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: ClearLove <[email protected]>
Co-authored-by: Thom Chiovoloni <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: Tobias Bucher <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Yotam Ofek <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: 许杰友 Jieyou Xu (Joe) <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Noratrieb <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Ibraheem Ahmed <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Taiki Endo <[email protected]>
Co-authored-by: Andrei Damian <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: Caleb Zulawski <[email protected]>
Co-authored-by: Jana Dönszelmann <[email protected]>
Co-authored-by: syvb <[email protected]>
Co-authored-by: Sebastian Urban <[email protected]>
Co-authored-by: Bardi Harborow <[email protected]>
Co-authored-by: lcnr <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: moxian <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Mads Marquart <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Rafael Bachmann <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: Jake Wharton <[email protected]>
Co-authored-by: Calder Coalson <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* Update Kani Metrics (#322)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Remove unused subtree update helper scripts (#325)

We now do all updates via github actions, which neither use the scripts
removed in this commit nor do we do it the same way as those scripts.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Subtree update automation: create merge PR even when subtree/library is up-to-date (#326)

When the PR updating the `subtree/library` branch has been merged
already we may still need to bring updates into `main` that haven't
previously been added to a pull request. This situation arises when an
older merge-into-main PR was still open at the time where the subtree
automation creating the `subtree/library` update PR ran.

The changes in this PR avoid this problem by making sure the
merge-into-main part of the automation is run even when
`subtree/library` is already up-to-date.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Add script to text-extract all contracts (#323)

This is a helper script to collect all existing contracts for subsequent
review or analysis. This facilitates metrics we want to report.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Merge subtree update for toolchain nightly-2025-04-07 (#329)

This is an automated PR to merge library subtree updates from 2025-04-06
(rust-lang/rust@5e17a2a91dd7dbefd8b4a1087c2e42257457deeb) to 2025-04-07
(rust-lang/rust@2fa8b11f0933dae9b4e5d287cc10c989218e8b36), 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: 0b8a1cde759561d2d1ef225d9dcbecfe41f1688d

---------

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: Tobias Bucher <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Yotam Ofek <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: 许杰友 Jieyou Xu (Joe) <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Noratrieb <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Ibraheem Ahmed <[email protected]>
Co-authored-by: Berrysoft <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Taiki Endo <[email protected]>
Co-authored-by: Andrei Damian <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: Caleb Zulawski <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: Jana Dönszelmann <[email protected]>
Co-authored-by: syvb <[email protected]>
Co-authored-by: Sebastian Urban <[email protected]>
Co-authored-by: Bardi Harborow <[email protected]>
Co-authored-by: lcnr <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: moxian <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Mads Marquart <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Rafael Bachmann <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: Nikolai Kuklin <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: Jake Wharton <[email protected]>
Co-authored-by: Kornel <[email protected]>
Co-authored-by: Calder Coalson <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* Update Kani Metrics (#333)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Merge subtree update for toolchain nightly-2025-04-21 (#336)

This is an automated PR to merge library subtree updates from 2025-04-07
(rust-lang/rust@2fa8b11f0933dae9b4e5d287cc10c989218e8b36) to 2025-04-21
(rust-lang/rust@b8c54d6358926028ac2fab1ec2b8665c70edb1c0) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: 2ab28f38e1a6040c3e12ab4bf72cb5b5fb3b03c1

---------

Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Petros Angelatos <[email protected]>
Signed-off-by: Huang Qi <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: beetrees <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Mads Marquart <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: James Wainwright <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Rafael Bachmann <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: Nikolai Kuklin <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jake Wharton <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Kornel <[email protected]>
Co-authored-by: Calder Coalson <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: izarma <[email protected]>
Co-authored-by: Bennet Bleßmann <[email protected]>
Co-authored-by: Celina G. Val <[email protected]>
Co-authored-by: Jonathan Gruner <[email protected]>
Co-authored-by: Stan Manilov <[email protected]>
Co-authored-by: Gabriel Bjørnager Jensen <[email protected]>
Co-authored-by: lincot <[email protected]>
Co-authored-by: timesince <[email protected]>
Co-authored-by: Boxy <[email protected]>
Co-authored-by: oyvindln <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Folkert de Vries <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Petros Angelatos <[email protected]>
Co-authored-by: Jesus Checa Hidalgo <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Ricardo Fernández Serrata <[email protected]>
Co-authored-by: GenYuLi <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: Sky <[email protected]>
Co-authored-by: Huang Qi <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: 0x79de <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Glyn Normington <[email protected]>
Co-authored-by: Tamir Duberstein <[email protected]>
Co-authored-by: Josh Triplett <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Lyndon Brown <[email protected]>
Co-authored-by: Patrick Mooney <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* Merge subtree update for toolchain nightly-2025-04-23 (#340)

This is an automated PR to merge library subtree updates from 2025-04-21
(rust-lang/rust@b8c54d6358926028ac2fab1ec2b8665c70edb1c0) to 2025-04-23
(rust-lang/rust@6bc57c6bf7d0024ad9ea5a2c112f3fc9c383c8a4), 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: 54a7b4f89b6e3b11734cde061e239c35ec6cf2e3

---------

Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Petros Angelatos <[email protected]>
Signed-off-by: Huang Qi <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jake Wharton <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Kornel <[email protected]>
Co-authored-by: Calder Coalson <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: izarma <[email protected]>
Co-authored-by: Bennet Bleßmann <[email protected]>
Co-authored-by: Celina G. Val <[email protected]>
Co-authored-by: Jonathan Gruner <[email protected]>
Co-authored-by: Stan Manilov <[email protected]>
Co-authored-by: Gabriel Bjørnager Jensen <[email protected]>
Co-authored-by: lincot <[email protected]>
Co-authored-by: timesince <[email protected]>
Co-authored-by: Boxy <[email protected]>
Co-authored-by: oyvindln <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Folkert de Vries <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Petros Angelatos <[email protected]>
Co-authored-by: Jesus Checa Hidalgo <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Ricardo Fernández Serrata <[email protected]>
Co-authored-by: GenYuLi <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: Sky <[email protected]>
Co-authored-by: Huang Qi <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Jethro Beekman <[email protected]>
Co-authored-by: 0x79de <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Glyn Normington <[email protected]>
Co-authored-by: Tamir Duberstein <[email protected]>
Co-authored-by: Josh Triplett <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Lyndon Brown <[email protected]>
Co-authored-by: Kent Ross <[email protected]>
Co-authored-by: Noa <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Patrick Mooney <[email protected]>
Co-authored-by: Onè <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: gitbot <git@bot>

* Fix Challenge 18 rendering in book (#337)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Merge subtree update for toolchain nightly-2025-04-24 (#342)

This is an automated PR to merge library subtree updates from 2025-04-23
(rust-lang/rust@6bc57c6bf7d0024ad9ea5a2c112f3fc9c383c8a4) to 2025-04-24
(rust-lang/rust@df35ff6c354f1f1fbf430b84e7dea37dfe997f34) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: 563e49d1793208e58831ccc0eb1b3d684b296943

---------

Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Petros Angelatos <[email protected]>
Signed-off-by: Huang Qi <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jake Wharton <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Kornel <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Calder Coalson <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: izarma <[email protected]>
Co-authored-by: Bennet Bleßmann <[email protected]>
Co-authored-by: Celina G. Val <[email protected]>
Co-authored-by: Jonathan Gruner <[email protected]>
Co-authored-by: Stan Manilov <[email protected]>
Co-authored-by: Gabriel Bjørnager Jensen <[email protected]>
Co-authored-by: lincot <[email protected]>
Co-authored-by: timesince <[email protected]>
Co-authored-by: Boxy <[email protected]>
Co-authored-by: oyvindln <[email protected]>
Co-authored-by: Berrysoft <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Folkert de Vries <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Petros Angelatos <[email protected]>
Co-authored-by: Jesus Checa Hidalgo <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Ricardo Fernández Serrata <[email protected]>
Co-authored-by: GenYuLi <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: Sky <[email protected]>
Co-authored-by: Huang Qi <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Jethro Beekman <[email protected]>
Co-authored-by: 0x79de <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Glyn Normington <[email protected]>
Co-authored-by: Tamir Duberstein <[email protected]>
Co-authored-by: Josh Triplett <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Lyndon Brown <[email protected]>
Co-authored-by: Kent Ross <[email protected]>
Co-authored-by: Noa <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Patrick Mooney <[email protected]>
Co-authored-by: Onè <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Carolyn Zech <[email protected]>

* Update Kani Metrics (#343)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Add loop_invariants for some Int power functions (#327)

Is PR add loop_invariants for `checked_pow`, `wrapping_pow`,
`overflowing_pow` functions in `library/core/src/num/uint_macros.rs` and
`library/core/src/num/int_macros.rs`.

Side notes: 
- We need the feature that separate panic and other UBs to verify the
function `strict_pow`, because this function calls `strict_mul`, which
will panic when overflow happens.
- The function `pow` can overflow and may require contracts, such as 
```
#[kani::requires(self.checked_pow(exp).is_some())]
#[kani::ensures(|x| *x == self.checked_pow(exp).unwrap())]
```


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

Co-authored-by: Michael Tautschnig <[email protected]>

* Implement kani::Arbitrary for Wrapping, Saturating, and Simd types (#328)

Implement `kani::Arbitrary` for the `Wrapping`, `Saturating`, and `Simd`
types.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Michael Tautschnig <[email protected]>

* Add autoharness-analyzer CI job (#344)

Run https://github.com/carolynzech/autoharness_analyzer and push its
results to the job summary.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Add autoharness to run-kani script and use in CI (#334)

Run a selected set of automatic harnesses where their previous, manual
harnesses are being removed in this PR.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Update Kani Metrics (#349)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Only require two approvals for changes to `doc/`, `library/` or `verifast-proofs/` (#351)

We are making a lot of changes to our `scripts/` and
`.github/workflows/` folders to improve automation. These changes are
low-risk; we have no plans to upstream them and they're not part of the
public-facing challenge effort. Update our workflow to require two
committee approvals iff `doc/`, `library/` or `verifast-proofs/` are
modified, and otherwise just require one.

See https://github.com/carolynzech/rust/pull/35 and
https://github.com/carolynzech/rust/pull/36 for test runs on my fork.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Fix typo in comment ('contact' -> 'contract') (#352)

I was grepping for contract and this one didn't match because of the
typo. Minor comment-only change.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Update Kani Metrics (#355)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Fix num::nonzero::NonZero::<*>::rotate_{left,right} contracts (#346)

The result of a rotate operation is always non-zero, which could still
be less than zero in case of signed types.

Proofs were failing with the prior contract, but this still passed CI as
we haven't yet picked up the Kani version where autoharness exits with a
non-zero exit code in case of proof failure.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Update Kani Metrics (#359)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Merge subtree update for toolchain nightly-2025-05-06 (#354)

This is an automated PR to merge library subtree updates from 2025-04-24
(rust-lang/rust@df35ff6c354f1f1fbf430b84e7dea37dfe997f34) to 2025-05-06
(rust-lang/rust@2e6882ac5be27a73293d6f7ae56397fdf32848de) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: 794e27443f2bd557da13a2f7b1289b42bffaec6f

---------

Signed-off-by: Huang Qi <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Sean Cross <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Huang Qi <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Diego Ongaro <[email protected]>
Co-authored-by: Jethro Beekman <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Janggun Lee <[email protected]>
Co-authored-by: 0x79de <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Glyn Normington <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Tamir Duberstein <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Josh Triplett <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Lyndon Brown <[email protected]>
Co-authored-by: Kent Ross <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: Noa <[email protected]>
Co-authored-by: Ed Page <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Patrick Mooney <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: Jonathan Gruner <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Onè <[email protected]>
Co-authored-by: Folkert de Vries <[email protected]>
Co-authored-by: Urgau <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: Jonas Böttiger <[email protected]>
Co-authored-by: Hegui Dai <[email protected]>
Co-authored-by: Gabriel Bjørnager Jensen <[email protected]>
Co-authored-by: Artur Roos <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: Nicholas Nethercote <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: ismailarilik <[email protected]>
Co-authored-by: Tobias <[email protected]>
Co-authored-by: Ethan Wu <[email protected]>
Co-authored-by: Jake Goulding <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Pavel Grigorenko <[email protected]>
Co-authored-by: LemonJ <[email protected]>
Co-authored-by: SabrinaJewson <[email protected]>
Co-authored-by: Andrew Zhogin <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Zachary S <[email protected]>
Co-authored-by: sayantn <[email protected]>
Co-authored-by: Eyal Kalderon <[email protected]>
Co-authored-by: Lynnesbian <[email protected]>
Co-authored-by: Christopher Berner <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>
Co-authored-by: Carolyn Zech <[email protected]>

* Parse log file of multi-threaded Kani run (terse output) into JSON (#324)

Given a run of Kani on the standard library with `--jobs=<N>
--output-format=terse` (and, typically, `autoharness`) enabled this
produces a machine-processable JSON result via
```
python3 log_parser.py \
  --kani-list-file kani-list.json \
  --analysis-results-dir std_lib_analysis/results/ \
  verification.log -o results.json
```
where each entry in the resulting JSON array is of the form
```
{
  "thread_id": int,
  "result": {
    "harness": string,
    "is_autoharness": bool,
    "autoharness_result": string,
    "with_contract": bool,
    "crate": string,
    "function": string,
    "function_safeness": string,
    "file_name": string,
    "n_failed_properties": int,
    "n_total_properties": int,
    "result": string,
    "time": string,
    "output": array
  }
}
```
With the help of `jq` one can then conveniently compute various metrics,
e.g.,
```
jq 'map(select(.result.result == "SUCCESSFUL" and
               .result.is_autoharness == true and
               .result.crate == "core" and
               .result.function_safeness == "unsafe" and
               .result.with_contract == true)) | length' results.json
```
to find the number of successfully-verified contracts of unsafe
functions in crate `core` that were verified using automatically
generated harnesses.


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Add Challenges 20 21 22 for str Pattern and iter (#266)

This PR adds:
- Challenge 20 21: for functions in str::pattern.rs
- Challenge 22: for functions in str::iter.rs

Resolves #ISSUE-NUMBER

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Michael Tautschnig <[email protected]>
Co-authored-by: Carolyn Zech <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>

* Add Challenge 25: VecDeque (#269)

This PR adds Challenge 25 for VecDeque

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Michael Tautschnig <[email protected]>

* Add Challenge 19: Safety of RawVec (#314)

This PR adds Challenge 19: Safety of RawVec

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Michael Tautschnig <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>

* Add safety preconditions to std/src/alloc.rs (#330)

These contracts formalize the safety requirements that were previously
only documented in comments.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Challenge 7: make panicking part optional; remove mention of verifying intrinsics (#357)

Update the atomic intrinsics challenge to make verifying the intrinsics
out of scope, since that would require verifying compiler
implementations that are out of scope for this effort. Also make the
part about verifying the absence of panics optional to restrict the
requirements to safety only.

I also added a `mdbook-linkcheck` dependency because I discovered I
needed that to build the book locally.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Merge subtree update for toolchain nightly-2025-05-20 (#361)

This is an automated PR to merge library subtree updates from 2025-05-06
(rust-lang/rust@2e6882ac5be27a73293d6f7ae56397fdf32848de) to 2025-05-20
(rust-lang/rust@60dabef95a3de3ec974dcb50926e4bfe743f078f) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: cc38593415f4067ec72919ba180614e5f3209663

---------

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: Sean Cross <[email protected]>
Signed-off-by: Vladimir Krivopalov <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Gabriel Bjørnager Jensen <[email protected]>
Co-authored-by: Artur Roos <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Jiahao XU <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: Nicholas Nethercote <[email protected]>
Co-authored-by: Hegui Dai <[email protected]>
Co-authored-by: Urgau <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: ismailarilik <[email protected]>
Co-authored-by: Tobias <[email protected]>
Co-authored-by: Ethan Wu <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Jake Goulding <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Pavel Grigorenko <[email protected]>
Co-authored-by: LemonJ <[email protected]>
Co-authored-by: SabrinaJewson <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Andrew Zhogin <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jon Bauman <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Mathis B <[email protected]>
Co-authored-by: Zachary S <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: sayantn <[email protected]>
Co-authored-by: Eyal Kalderon <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Lynnesbian <[email protected]>
Co-authored-by: Christopher Berner <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Paolo Barbolini <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: The 8472 <[email protected]>
Co-authored-by: Nick Kocharhook <[email protected]>
Co-authored-by: Vladimir Krivopalov <[email protected]>
Co-authored-by: Vilim Lendvaj <[email protected]>
Co-authored-by: David Tolnay <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: ivmarkov <[email protected]>
Co-authored-by: Martin Kröning <[email protected]>
Co-authored-by: Daniel Paoliello <[email protected]>
Co-authored-by: Luca Versari <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Ben Kimock <[email protected]>
Co-authored-by: Dietrich Daroch <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Pietro Albini <[email protected]>
Co-authored-by: Julian Knodt <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: Michał Łowicki <[email protected]>
Co-authored-by: Samuel Tardieu <[email protected]>
Co-authored-by: B I Mohammed Abbas <[email protected]>
Co-authored-by: Federico Terzi <[email protected]>
Co-authored-by: sam skeoch <[email protected]>
Co-authored-by: est31 <[email protected]>
Co-authored-by: Speedy_Lex <[email protected]>
Co-authored-by: Mario Pastorelli <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* Move autoharness_analyzer to `scripts/` (#350)

Move `autoharness_analyzer` to this repository so it can be
community-owned and maintained.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Michael Tautschnig <[email protected]>

* Add preconditions for disjoint_bitor (#347)

Uses the verbatim SAFETY comment as precondition to avoid spurious proof
failures.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Carolyn Zech <[email protected]>

* Update Kani Metrics (#365)

This is an automated PR to update Kani metrics.

The metrics have been updated by running `./scripts/run-kani.sh --run
metrics`.

Co-authored-by: github-merge-queue <[email protected]>

* Merge subtree update for toolchain nightly-2025-05-22 (#364)

This is an automated PR to merge library subtree updates from 2025-05-20
(rust-lang/rust@60dabef95a3de3ec974dcb50926e4bfe743f078f) to 2025-05-22
(rust-lang/rust@bf64d66bd58719fac2585eae5e546e5e1d9947f5) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: 02d93290db5d37dc78ac1646dcf838f46304c4e4

---------

Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: Sean Cross <[email protected]>
Signed-off-by: Vladimir Krivopalov <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Co-authored-by: Hegui Dai <[email protected]>
Co-authored-by: Urgau <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: bendn <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: ismailarilik <[email protected]>
Co-authored-by: Tobias <[email protected]>
Co-authored-by: Ethan Wu <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Jake Goulding <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Christopher Durham <[email protected]>
Co-authored-by: Pavel Grigorenko <[email protected]>
Co-authored-by: LemonJ <[email protected]>
Co-authored-by: SabrinaJewson <[email protected]>
Co-authored-by: Nicholas Nethercote <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Andrew Zhogin <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jon Bauman <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Mathis B <[email protected]>
Co-authored-by: Zachary S <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: sayantn <[email protected]>
Co-authored-by: Artur Roos <[email protected]>
Co-authored-by: Eyal Kalderon <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Lynnesbian <[email protected]>
Co-authored-by: Christopher Berner <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Paolo Barbolini <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: The 8472 <[email protected]>
Co-authored-by: Nick Kocharhook <[email protected]>
Co-authored-by: Vladimir Krivopalov <[email protected]>
Co-authored-by: Vilim Lendvaj <[email protected]>
Co-authored-by: David Tolnay <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: ivmarkov <[email protected]>
Co-authored-by: Martin Kröning <[email protected]>
Co-authored-by: Daniel Paoliello <[email protected]>
Co-authored-by: Luca Versari <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Ben Kimock <[email protected]>
Co-authored-by: Dietrich Daroch <[email protected]>
Co-authored-by: León Orell Valerian Liehr <[email protected]>
Co-authored-by: Pietro Albini <[email protected]>
Co-authored-by: Julian Knodt <[email protected]>
Co-authored-by: Michael Goulet <[email protected]>
Co-authored-by: Michał Łowicki <[email protected]>
Co-authored-by: Samuel Tardieu <[email protected]>
Co-authored-by: B I Mohammed Abbas <[email protected]>
Co-authored-by: Federico Terzi <[email protected]>
Co-authored-by: sam skeoch <[email protected]>
Co-authored-by: est31 <[email protected]>
Co-authored-by: Fluid <[email protected]>
Co-authored-by: Speedy_Lex <[email protected]>
Co-authored-by: Mario Pastorelli <[email protected]>
Co-authored-by: Daniel McNab <[email protected]>
Co-authored-by: Josh Triplett <[email protected]>
Co-authored-by: gitbot <git@bot>
Co-authored-by: Michael Tautschnig <[email protected]>

* additional transmute and transmute_unchecked harnesses (#264)

Toward solving #19 

This pr adds some additional harnesses for transmute_unchecked and
transmute.

With this, we suspect that the main harnesses for part 1 of challenge 1
(verifying the transmute intrinsics directly) are there (besides adding
more of the same kinds of harnesses, like the 2-way harnesses for more
types). We go into more detail about what needs to be done for part 1,
as well as what has been done and what can't be done here:
https://docs.google.com/document/d/1zFGANNMx8mZ8fucKrN--ELwKASUPeP20THH6M_fQ7jg/edit?usp=sharing

Just one note: transmute has far fewer harnesses than
transmute_unchecked here -- this is because it is not currently possible
to write a wrapper for transmute, and it is thus not possible to write a
function contract. A lot of the harnesses for transmute_unchecked test
the function contract's validity clause, rather than the function
itself, explaining this disparity.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: AlexLB99 <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>

* Use uname -m instead of uname -p (#372)

On my Debian machine, uname -p returns "unknown" and the manpage says -p
is non-portable. I do get x86_64 on from uname -m and that doesn't have
the non-portable disclaimer on it.

> Please add a description of your PR.
> If this is a solution to an open challenge, please explain your
solution.
>
> Don't forget to check our book to ensure your solution satisfy the
overall
> requirements as well as the challenge success criteria.
>

Resolves #ISSUE-NUMBER

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Add missing `proof_for_contract` to `mut_ptr::offset_from` harness (#358)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

Co-authored-by: Michael Tautschnig <[email protected]>

* Derive `Arbitrary` for various `core_arch::x86` types (#348)

This enables autoharness to generate an additional 4067 harnesses (and
successfully prove 363 of them).

Using a patch instead of directly modifying the source code here for
`library/stdarch` is a git submodule. Modifying the source code directly
would require forking that other repository, tweaking our submodule
pointer, and thereby causing additional challenges for our fork update
automation.

The long-term solution should be automated derive-arbitrary support in
autoharness.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

* Merge subtree update for toolchain nightly-2025-05-28 (#370)

This is an automated PR to merge library subtree updates from 2025-05-22
(rust-lang/rust@bf64d66bd58719fac2585eae5e546e5e1d9947f5) to 2025-05-28
(rust-lang/rust@45f256d9d7cffb66185c0bf1b8a864cba79db90c) (inclusive)
into main. `git merge` resulted in conflicts, which require manual
resolution. Files were commited with merge conflict markers. **Do not
remove or edit the following annotations:**
git-subtree-dir: library
git-subtree-split: 725b0dbbc7fc0e2d1757d91366d7c181cc6a64ac

---------

Signed-off-by: Sean Cross <[email protected]>
Signed-off-by: Vladimir Krivopalov <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Paul Mabileau <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Andrew Zhogin <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Sean Cross <[email protected]>
Co-authored-by: The Miri Cronjob Bot <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jon Bauman <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Mathis B <[email protected]>
Co-authored-by: Natrix <[email protected]>
Co-authored-by: Zachary S <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: sayantn <[email protected]>
Co-authored-by: Artur Roos <[email protected]>
Co-authored-by: Eyal Kalderon <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Lynnesbian <[email protected]>
Co-authored-by: Christopher Berner <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Paolo Barbolini <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: The 8472 <[email protected]>
Co-authored-by: Nick Kocharhook <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Vladimir Krivopalov <[email protected]>
Co-authored-by: Vilim Lendvaj <[email protected]>
Co-authored-by: David Tolnay <[email protected]>
Co-authored-by: Marijn Schouten <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: ivmarkov <[email protected]>
Co-authored-by: Martin Kröning <[email protected]>
Co-authored-by: Daniel Paoliello <[email protected]>
Co-authored-by: Luca Versari <veluca93@…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.