Skip to content

Update intrinsics wrapping documentation#157900

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
elanortang:main
Jun 15, 2026
Merged

Update intrinsics wrapping documentation#157900
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
elanortang:main

Conversation

@elanortang

Copy link
Copy Markdown
Contributor

This PR updates the documentation for intrinsics::{wrapping_add, wrapping_sub, wrapping_mul},
to make it accurate for both signed and unsigned types.

Related issue: #156726

@rustbot

rustbot commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter
gets adapted for the changes, if necessary.

cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 15, 2026
@rustbot

rustbot commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 10 candidates
  • Random selection from Mark-Simulacrum, clarfonthey, jhpratt, joboet

@RalfJung

Copy link
Copy Markdown
Member

Thanks!

r? me
@bors squash

@rust-bors

This comment has been minimized.

@rustbot rustbot assigned RalfJung and unassigned Mark-Simulacrum Jun 15, 2026
* update intrinsics wrapping documentation
* fix variable names
@rust-bors

rust-bors Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🔨 2 commits were squashed into 61006a0.

@RalfJung

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 61006a0 has been approved by RalfJung

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 15, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 15, 2026
Update intrinsics wrapping documentation

This PR updates the documentation for `intrinsics::{wrapping_add, wrapping_sub, wrapping_mul}`,
to make it accurate for both signed and unsigned types.

Related issue: rust-lang#156726
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 15, 2026
Update intrinsics wrapping documentation

This PR updates the documentation for `intrinsics::{wrapping_add, wrapping_sub, wrapping_mul}`,
to make it accurate for both signed and unsigned types.

Related issue: rust-lang#156726
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 15, 2026
Update intrinsics wrapping documentation

This PR updates the documentation for `intrinsics::{wrapping_add, wrapping_sub, wrapping_mul}`,
to make it accurate for both signed and unsigned types.

Related issue: rust-lang#156726
rust-bors Bot pushed a commit that referenced this pull request Jun 15, 2026
Rollup of 6 pull requests

Successful merges:

 - #157899 (Update LLVM to 22.1.7)
 - #157029 (stabilize feature `float_algebraic`)
 - #157872 (`suspicious_double_ref_op`: report unadjusted return type)
 - #157877 (Stabilize `nonzero_from_str_radix`)
 - #157900 (Update intrinsics wrapping documentation)
 - #157904 (Add Alice Ryhl to libs review rotation)
rust-bors Bot pushed a commit that referenced this pull request Jun 15, 2026
Rollup of 6 pull requests

Successful merges:

 - #157899 (Update LLVM to 22.1.7)
 - #157029 (stabilize feature `float_algebraic`)
 - #157872 (`suspicious_double_ref_op`: report unadjusted return type)
 - #157877 (Stabilize `nonzero_from_str_radix`)
 - #157900 (Update intrinsics wrapping documentation)
 - #157904 (Add Alice Ryhl to libs review rotation)
rust-bors Bot pushed a commit that referenced this pull request Jun 15, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #157029 (stabilize feature `float_algebraic`)
 - #157872 (`suspicious_double_ref_op`: report unadjusted return type)
 - #157877 (Stabilize `nonzero_from_str_radix`)
 - #157900 (Update intrinsics wrapping documentation)
 - #157904 (Add Alice Ryhl to libs review rotation)
 - #157911 (Rename `errors.rs` file to `diagnostics.rs` (10/N))
@rust-bors rust-bors Bot merged commit 38ea07f into rust-lang:main Jun 15, 2026
13 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 15, 2026
rust-timer added a commit that referenced this pull request Jun 15, 2026
Rollup merge of #157900 - elanortang:main, r=RalfJung

Update intrinsics wrapping documentation

This PR updates the documentation for `intrinsics::{wrapping_add, wrapping_sub, wrapping_mul}`,
to make it accurate for both signed and unsigned types.

Related issue: #156726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants