constify result unwrap unchecked by bend-n · Pull Request #148333 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation9 Commits1 Checks11 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@bend-n

constifies unwrap unchecked on result
will make tracking issue if good

@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

Oct 31, 2025

@rustbot

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

clarfonthey

// SAFETY: the safety contract must be upheld by the caller.
Err(_) => unsafe { hint::unreachable_unchecked() },
Err(e) => {
super::mem::forget(e);

Choose a reason for hiding this comment

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

This should be annotated as a const hack so it can potentially be fixed later:

// FIXME(const-hack): to avoid E: const Destruct bound

@rust-log-analyzer

This comment has been minimized.

@Mark-Simulacrum

r=me with a tracking issue added

@bend-n

@rustbot

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@bend-n

@bors

@bend-n: 🔑 Insufficient privileges: Not in reviewers

@Kivooeo

@bors

📌 Commit edd7d8a has been approved by mark-simulacrum

It is now in the queue for this repository.

@bors bors 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-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Nov 8, 2025

bors added a commit that referenced this pull request

Nov 9, 2025

@bors

Rollup of 22 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit that referenced this pull request

Nov 9, 2025

@rust-timer

Rollup merge of #148333 - bend-n:const_result_unwrap_unchecked, r=mark-simulacrum

constify result unwrap unchecked

constifies unwrap unchecked on result will make tracking issue if good

@bend-n bend-n deleted the const_result_unwrap_unchecked branch

November 9, 2025 14:44

github-actions bot pushed a commit to rust-lang/stdarch that referenced this pull request

Nov 10, 2025

@bors

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request

Nov 10, 2025

@bors

makai410 pushed a commit to makai410/rustc_public that referenced this pull request

Nov 10, 2025

@bors

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 10, 2025

@Zalathar

…ed, r=mark-simulacrum

constify result unwrap unchecked

constifies unwrap unchecked on result will make tracking issue if good

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 10, 2025

@bors

makai410 pushed a commit to makai410/rustc_public that referenced this pull request

Nov 16, 2025

@bors

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request

Nov 30, 2025

@Zalathar

…ed, r=mark-simulacrum

constify result unwrap unchecked

constifies unwrap unchecked on result will make tracking issue if good

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request

Nov 30, 2025

@bors

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.