Skip to content

Various cleanups around the const eval query providers - #122397

Merged
bors merged 12 commits into
rust-lang:masterfrom
oli-obk:machine-read-hook2
Mar 14, 2024
Merged

Various cleanups around the const eval query providers#122397
bors merged 12 commits into
rust-lang:masterfrom
oli-obk:machine-read-hook2

Conversation

@oli-obk

Copy link
Copy Markdown
Contributor

r? @RalfJung

after this, working on running validation before interning starts with swapping the order of two lines of code

@rustbotrustbot 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 Mar 12, 2024
@rustbot

Copy link
Copy Markdown
Collaborator

The Miri subtree was changed

cc @rust-lang/miri

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

@RalfJungRalfJung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks good!

Some nits and then I saw some chances for further cleanup. Feel free to disregard the latter if you don't want to expand the scope of this PR.

Comment threadcompiler/rustc_const_eval/src/const_eval/eval_queries.rs
Comment threadcompiler/rustc_const_eval/src/const_eval/eval_queries.rs
Comment threadcompiler/rustc_const_eval/src/const_eval/eval_queries.rs Outdated
Comment threadcompiler/rustc_const_eval/src/const_eval/eval_queries.rs Outdated
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r=RalfJung

@bors

bors commented Mar 13, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit a3fa705 has been approved by RalfJung

It is now in the queue for this repository.

@borsbors 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 Mar 13, 2024
Comment threadcompiler/rustc_const_eval/src/errors.rs Outdated
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r-

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 13, 2024
@oli-obk
oli-obkforce-pushed the machine-read-hook2 branch from a3fa705 to 3393227CompareMarch 13, 2024 12:43
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r=RalfJung rollup

@bors

bors commented Mar 13, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 3393227 has been approved by RalfJung

It is now in the queue for this repository.

@borsbors 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 Mar 13, 2024
@oli-obkoli-obk mentioned this pull request Mar 13, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 13, 2024
…Jung
Various cleanups around the const eval query providers
r? `@RalfJung`
after this, working on running validation before interning starts with swapping the order of two lines of code
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 13, 2024
…iaskrgr
Rollup of 12 pull requests
Successful merges:
- rust-lang#104353 (Add CStr::bytes iterator)
- rust-lang#120699 (Document `TRACK_DIAGNOSTIC` calls.)
- rust-lang#121207 (Add `-Z external-clangrt`)
- rust-lang#122397 (Various cleanups around the const eval query providers)
- rust-lang#122416 (Various style improvements to `rustc_lint::levels`)
- rust-lang#122422 (compiletest: Allow `only-unix` in test headers)
- rust-lang#122424 (fix: typos)
- rust-lang#122425 (Increase timeout for new bors bot)
- rust-lang#122426 (Fix StableMIR `WrappingRange::is_full` computation)
- rust-lang#122430 (Generate link to `Local` in `hir::Let` documentation)
- rust-lang#122434 (pattern analysis: rename a few types)
- rust-lang#122437 (pattern analysis: remove `MaybeInfiniteInt::JustAfterMax`)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 13, 2024
…Jung
Various cleanups around the const eval query providers
r? ``@RalfJung``
after this, working on running validation before interning starts with swapping the order of two lines of code
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 13, 2024
…Jung
Various cleanups around the const eval query providers
r? ```@RalfJung```
after this, working on running validation before interning starts with swapping the order of two lines of code
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 13, 2024
…iaskrgr
Rollup of 9 pull requests
Successful merges:
- rust-lang#104353 (Add CStr::bytes iterator)
- rust-lang#120699 (Document `TRACK_DIAGNOSTIC` calls.)
- rust-lang#120943 (Create some minimal HIR for associated opaque types)
- rust-lang#121764 (Make incremental sessions identity no longer depend on the crate names provided by source code)
- rust-lang#122375 (CFI: Break tests into smaller files)
- rust-lang#122397 (Various cleanups around the const eval query providers)
- rust-lang#122405 (Add methods to create StableMIR constant)
- rust-lang#122416 (Various style improvements to `rustc_lint::levels`)
- rust-lang#122440 (const-eval: organize and extend tests for required-consts)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 14, 2024
…Jung
Various cleanups around the const eval query providers
r? ````@RalfJung````
after this, working on running validation before interning starts with swapping the order of two lines of code
This was referenced Mar 14, 2024
@bors

bors commented Mar 14, 2024

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #122243) made this pull request unmergeable. Please resolve the merge conflicts.

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 14, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2024
…iaskrgr
Rollup of 9 pull requests
Successful merges:
- rust-lang#104353 (Add CStr::bytes iterator)
- rust-lang#119676 (rustdoc-search: search types by higher-order functions)
- rust-lang#120699 (Document `TRACK_DIAGNOSTIC` calls.)
- rust-lang#121899 (Document how removing a type's field can be bad and what to do instead)
- rust-lang#122405 (Add methods to create StableMIR constant)
- rust-lang#122416 (Various style improvements to `rustc_lint::levels`)
- rust-lang#122421 (Improve `Step` docs)
- rust-lang#122440 (const-eval: organize and extend tests for required-consts)
- rust-lang#122461 (fix unsoundness in Step::forward_unchecked for signed integers)
Failed merges:
- rust-lang#122397 (Various cleanups around the const eval query providers)
r? `@ghost`
`@rustbot` modify labels: rollup
@oli-obk
oli-obkforce-pushed the machine-read-hook2 branch from 3393227 to a316c21CompareMarch 14, 2024 12:21
@oli-obk

Copy link
Copy Markdown
ContributorAuthor

@bors r=RalfJung

@bors

bors commented Mar 14, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit a316c21 has been approved by RalfJung

It is now in the queue for this repository.

@borsbors 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 Mar 14, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2024
…iaskrgr
Rollup of 10 pull requests
Successful merges:
- rust-lang#119029 (Avoid closing invalid handles)
- rust-lang#122238 (Document some builtin impls in the next solver)
- rust-lang#122247 (rustdoc-search: depth limit `T<U>` -> `U` unboxing)
- rust-lang#122287 (add test ensuring simd codegen checks don't run when a static assertion failed)
- rust-lang#122368 (chore: remove repetitive words)
- rust-lang#122397 (Various cleanups around the const eval query providers)
- rust-lang#122406 (Fix WF for `AsyncFnKindHelper` in new trait solver)
- rust-lang#122477 (Change some attribute to only_local)
- rust-lang#122482 (Ungate the `UNKNOWN_OR_MALFORMED_DIAGNOSTIC_ATTRIBUTES` lint)
- rust-lang#122490 (Update build instructions for OpenHarmony)
Failed merges:
- rust-lang#122471 (preserve span when evaluating mir::ConstOperand)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit b4dffc9 into rust-lang:masterMar 14, 2024
@rustbotrustbot added this to the 1.78.0 milestone Mar 14, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2024
Rollup merge of rust-lang#122397 - oli-obk:machine-read-hook2, r=RalfJung
Various cleanups around the const eval query providers
r? `@RalfJung`
after this, working on running validation before interning starts with swapping the order of two lines of code
@oli-obk
oli-obk deleted the machine-read-hook2 branch March 14, 2024 21:20
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2024
…=<try>
Validate before interning
based on rust-lang#122397fixesrust-lang#122398
r? `@RalfJung`
There are more cleanups that can be done afterwards, but I think they may be unnecessary to make this PR useful on its own
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@oli-obk@rustbot@bors@RalfJung