Skip to content
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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require const_impl_trait gate for all conditional and trait const calls #132823

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Nov 9, 2024

Alternative to #132786.

@compiler-errors this is basically what I meant with my proposals. I found it's easier to express this in code than English. ;)

r? @compiler-errors

@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 Nov 9, 2024
@rustbot
Copy link
Collaborator

rustbot commented Nov 9, 2024

Some changes occurred to the CTFE machinery

cc @rust-lang/wg-const-eval

@RalfJung RalfJung force-pushed the conditional-const-calls branch 2 times, most recently from 8dacead to 516b385 Compare November 9, 2024 21:32
@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung force-pushed the conditional-const-calls branch 3 times, most recently from 72898b3 to 996a8e4 Compare November 9, 2024 21:59
@RalfJung RalfJung force-pushed the conditional-const-calls branch from 996a8e4 to 822762c Compare November 9, 2024 22:02
Copy link
Member

@fee1-dead fee1-dead left a comment

Choose a reason for hiding this comment

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

looks good to me. r=me unless you wanted a specific review

@compiler-errors
Copy link
Member

@bors r=fee1-dead,compiler-errors rollup

@bors
Copy link
Contributor

bors commented Nov 10, 2024

📌 Commit f235b6f has been approved by fee1-dead,compiler-errors

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 Nov 10, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 10, 2024
…kingjubilee

Rollup of 6 pull requests

Successful merges:

 - rust-lang#131258 (Stabilize s390x inline assembly)
 - rust-lang#132801 (interpret: get_alloc_info: also return mutability)
 - rust-lang#132823 (require const_impl_trait gate for all conditional and trait const calls)
 - rust-lang#132824 (Update grammar in wasm-c-abi's compiler flag documentation)
 - rust-lang#132825 (Exclude relnotes-tracking-issue from needs-triage)
 - rust-lang#132828 (Additional tests to ensure let is rejected during parsing)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit d4c81c6 into rust-lang:master Nov 10, 2024
6 checks passed
@rustbot rustbot added this to the 1.84.0 milestone Nov 10, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Nov 10, 2024
Rollup merge of rust-lang#132823 - RalfJung:conditional-const-calls, r=fee1-dead,compiler-errors

require const_impl_trait gate for all conditional and trait const calls

Alternative to rust-lang#132786.

`@compiler-errors`  this is basically what I meant with my proposals. I found it's easier to express this in code than English. ;)

r? `@compiler-errors`
@RalfJung RalfJung deleted the conditional-const-calls branch November 10, 2024 09:00
mati865 pushed a commit to mati865/rust that referenced this pull request Nov 12, 2024
…r=fee1-dead,compiler-errors

require const_impl_trait gate for all conditional and trait const calls

Alternative to rust-lang#132786.

`@compiler-errors`  this is basically what I meant with my proposals. I found it's easier to express this in code than English. ;)

r? `@compiler-errors`
mati865 pushed a commit to mati865/rust that referenced this pull request Nov 12, 2024
…kingjubilee

Rollup of 6 pull requests

Successful merges:

 - rust-lang#131258 (Stabilize s390x inline assembly)
 - rust-lang#132801 (interpret: get_alloc_info: also return mutability)
 - rust-lang#132823 (require const_impl_trait gate for all conditional and trait const calls)
 - rust-lang#132824 (Update grammar in wasm-c-abi's compiler flag documentation)
 - rust-lang#132825 (Exclude relnotes-tracking-issue from needs-triage)
 - rust-lang#132828 (Additional tests to ensure let is rejected during parsing)

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.

6 participants