Skip to content

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function - #162379

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:rustc_do_not_const_check
Sep 7, 2026
Merged

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function#162379
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:rustc_do_not_const_check

Conversation

@RalfJung

@RalfJung RalfJung commented Sep 6, 2026

Copy link
Copy Markdown
Member

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk

@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 Sep 6, 2026
@rustbot

rustbot commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@oli-obk oli-obk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rust-bors

rust-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 714b06b has been approved by oli-obk

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 Sep 7, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 7, 2026
… r=oli-obk

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 7, 2026
… r=oli-obk

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 7, 2026
… r=oli-obk

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
…uwer

Rollup of 3 pull requests

Successful merges:

 - #161896 (Remove fields from TypeKind: Array, Slice)
 - #162354 (Make comptime functions ineligible for coverage)
 - #162379 (add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function)

Failed merges:

 - #162294 (Reflection refactor ptrs)
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try jobs=test-armhf-gnu

@rust-bors

rust-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

⌛ Trying commit 714b06b with merge 6115fff

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/34121360613

rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function


try-job: test-armhf-gnu
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors try cancel

@rust-bors

rust-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Try build cancelled. Cancelled workflows:

Hint: if you want to run another try build, you do not need to manually cancel the previous one. Just run @bors try and bors will cancel the previous build automatically.

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 7, 2026
… r=oli-obk

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 7, 2026
… r=oli-obk

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
…uwer

Rollup of 11 pull requests

Successful merges:

 - #158153 (avoid spurious lifetime diagnostic in async generic case)
 - #160197 (Restrict LLVM inline asm location cookie usage. Fixes #150451)
 - #162413 (Unconditionally invalidate the library when the compiler changes)
 - #162294 (Reflection refactor ptrs)
 - #162354 (Make comptime functions ineligible for coverage)
 - #162379 (add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function)
 - #162386 (Add a regression test for trailing attributes in doctests)
 - #162410 (std: remove exceed whitespace in docs)
 - #162420 (mir_build: Don't pass a redundant `scrutinee_span` to some MIR-build methods)
 - #162430 (rustc-dev-guide subtree update)
 - #162431 (add next-solver FIXMEs)
@rust-bors
rust-bors Bot merged commit b13597c into rust-lang:main Sep 7, 2026
13 of 14 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
Rollup merge of #162379 - RalfJung:rustc_do_not_const_check, r=oli-obk

add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function

IMO this is crucial, to ensure that we cannot break users by changing the body of such a function to something no-longer-const-compatible.

r? @oli-obk
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.

4 participants