Skip to content

Conversation

scottmcm
Copy link
Member

@scottmcm scottmcm commented Aug 4, 2025

No functional changes; just some tests.

I made these for #144483, but that's going in a different direction, so I wanted to propose we just add them to help see the impact of other related changes in the future.

r? mir

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 4, 2025
}

bb3: {
_0 = <Option<u32> as FromResidual<Option<Infallible>>>::from_residual(const Option::<Infallible>::None) -> [return: bb4, unwind unreachable];
Copy link
Member Author

Choose a reason for hiding this comment

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

This is particularly unfortunate because it's really just _0 = None, so the call is about as wasteful as is possible.

@cjgillot
Copy link
Contributor

cjgillot commented Aug 4, 2025

R=me once ci passes
@bors rollup

@scottmcm
Copy link
Member Author

scottmcm commented Aug 4, 2025

@bors r=cjgillot

@bors
Copy link
Collaborator

bors commented Aug 4, 2025

📌 Commit e1a38ec has been approved by cjgillot

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-review Status: Awaiting review from the assignee but also interested parties. labels Aug 4, 2025
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 4, 2025
Add some pre-codegen MIR tests for debug mode

No functional changes; just some tests.

I made these for rust-lang#144483, but that's going in a different direction, so I wanted to propose we just add them to help see the impact of other related changes in the future.

r? mir
bors added a commit that referenced this pull request Aug 4, 2025
Rollup of 2 pull requests

Successful merges:

 - #144694 (Distinguish prepending and replacing self ty in predicates)
 - #144875 (Add some pre-codegen MIR tests for debug mode)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit fe644eb into rust-lang:master Aug 4, 2025
10 checks passed
rust-timer added a commit that referenced this pull request Aug 4, 2025
Rollup merge of #144875 - scottmcm:more-mir-tests, r=cjgillot

Add some pre-codegen MIR tests for debug mode

No functional changes; just some tests.

I made these for #144483, but that's going in a different direction, so I wanted to propose we just add them to help see the impact of other related changes in the future.

r? mir
@rustbot rustbot added this to the 1.91.0 milestone Aug 4, 2025
@scottmcm scottmcm deleted the more-mir-tests branch August 4, 2025 17:39
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-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants