Skip to content

Conversation

@beepster4096
Copy link
Contributor

@beepster4096 beepster4096 commented Oct 16, 2025

Fixes #147733 caused by #145513

This code in fact does not run only on runtime MIR.

@rustbot
Copy link
Collaborator

rustbot commented Oct 16, 2025

Some changes occurred to constck

cc @fee1-dead

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

@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 Oct 16, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 16, 2025

r? @madsmtm

rustbot has assigned @madsmtm.
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

@madsmtm
Copy link
Contributor

madsmtm commented Oct 16, 2025

r? saethlin (since you reviewed the original PR)

@rustbot rustbot assigned saethlin and unassigned madsmtm Oct 16, 2025
@RalfJung
Copy link
Member

What kind of MIR does const_checks get run on, if it's not runtime MIR?

@beepster4096
Copy link
Contributor Author

It runs on post-cleanup analysis MIR right here right before the lowering to runtime MIR.

@saethlin
Copy link
Member

Hm. I'm a bit wary of how we got this wrong, but at least now we have a test case.

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 17, 2025

📌 Commit 5ffbec8 has been approved by saethlin

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 Oct 17, 2025
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Oct 17, 2025
…hlin

Undo CopyForDeref assertion in const qualif

Fixes rust-lang#147733 caused by rust-lang#145513

This code in fact does not run only on runtime MIR.
bors added a commit that referenced this pull request Oct 17, 2025
Rollup of 6 pull requests

Successful merges:

 - #144936 (CFI: Fix types that implement Fn, FnMut, or FnOnce)
 - #147468 (Implement fs api set_times and set_times_nofollow)
 - #147660 (rustdoc-search: stringdex 0.0.2)
 - #147735 (Micro-optimization in `FunctionCx::initialize_locals`)
 - #147764 (Undo CopyForDeref assertion in const qualif)
 - #147783 (bootstrap: migrate to object 0.37)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Oct 18, 2025
Rollup of 8 pull requests

Successful merges:

 - #140153 (Implement `Debug` for `EncodeWide`)
 - #145724 (the `#[track_caller]` shim should not inherit `#[no_mangle]`)
 - #147258 (iter repeat: panic on last)
 - #147454 (Fix backtraces with `-C panic=abort` on qnx; emit unwind tables by default)
 - #147468 (Implement fs api set_times and set_times_nofollow)
 - #147764 (Undo CopyForDeref assertion in const qualif)
 - #147805 (use module_child index as disambiguator for external items)
 - #147824 (docs: update Motor OS target docs)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 756d3a0 into rust-lang:master Oct 18, 2025
11 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 18, 2025
rust-timer added a commit that referenced this pull request Oct 18, 2025
Rollup merge of #147764 - beepster4096:oopsies_sorry, r=saethlin

Undo CopyForDeref assertion in const qualif

Fixes #147733 caused by #145513

This code in fact does not run only on runtime MIR.
Kobzol pushed a commit to Kobzol/rustc_codegen_cranelift that referenced this pull request Dec 29, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#140153 (Implement `Debug` for `EncodeWide`)
 - rust-lang/rust#145724 (the `#[track_caller]` shim should not inherit `#[no_mangle]`)
 - rust-lang/rust#147258 (iter repeat: panic on last)
 - rust-lang/rust#147454 (Fix backtraces with `-C panic=abort` on qnx; emit unwind tables by default)
 - rust-lang/rust#147468 (Implement fs api set_times and set_times_nofollow)
 - rust-lang/rust#147764 (Undo CopyForDeref assertion in const qualif)
 - rust-lang/rust#147805 (use module_child index as disambiguator for external items)
 - rust-lang/rust#147824 (docs: update Motor OS target docs)

r? `@ghost`
`@rustbot` modify labels: rollup
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.

ICE CopyForDeref in runtime MIR

6 participants