Skip to content

Change EarlyCheckNode from a trait to an enum.#158109

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
nnethercote:EarlyCheckNode-trait-to-enum
Jun 19, 2026
Merged

Change EarlyCheckNode from a trait to an enum.#158109
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
nnethercote:EarlyCheckNode-trait-to-enum

Conversation

@nnethercote

Copy link
Copy Markdown
Contributor

It only has two impls, both of which are tuples, which is ugly. An enum is much simpler and clearer.

Also, EarlyContextAndPass doesn't need to be public.

r? @Urgau

It only has two impls, both of which are tuples, which is ugly. An enum
is much simpler and clearer.

Also, `EarlyContextAndPass` doesn't need to be public.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 18, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 18, 2026

@Urgau Urgau 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.

Seems fine. Thanks for the cleanup.

View changes since this review

@Urgau

Urgau commented Jun 19, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 43a9857 has been approved by Urgau

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 Jun 19, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
…rgau

Change `EarlyCheckNode` from a trait to an enum.

It only has two impls, both of which are tuples, which is ugly. An enum is much simpler and clearer.

Also, `EarlyContextAndPass` doesn't need to be public.

r? @Urgau
@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 19, 2026
@rust-bors

rust-bors Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 5080749 failed: CI. Failed job:

@jhpratt

jhpratt commented Jun 19, 2026

Copy link
Copy Markdown
Member

@bors retry

@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 Jun 19, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 19, 2026
…o-enum, r=Urgau

Change `EarlyCheckNode` from a trait to an enum.

It only has two impls, both of which are tuples, which is ugly. An enum is much simpler and clearer.

Also, `EarlyContextAndPass` doesn't need to be public.

r? @Urgau
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 3 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 3 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
  TOOLSTATE_PUBLISH: 1
##[endgroup]
    Updating crates.io index
error: failed to get `simd-adler32` as a dependency of package `miniz_oxide v0.8.8`
    ... which satisfies dependency `miniz_oxide = "^0.8.5"` of package `flate2 v1.1.9`
    ... which satisfies dependency `flate2 = "^1.1.9"` of package `citool v0.1.0 (/Users/runner/work/rust/rust/src/ci/citool)`

Caused by:
  failed to load source for dependency `simd-adler32`

Caused by:

rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 3 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
@nnethercote

Copy link
Copy Markdown
Contributor Author

@bors retry

@rust-bors

rust-bors Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

❗ You can only retry pull requests that are approved and have a previously failed auto build.

rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 3 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 3 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 3 pull requests



Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 19, 2026
…o-enum, r=Urgau

Change `EarlyCheckNode` from a trait to an enum.

It only has two impls, both of which are tuples, which is ugly. An enum is much simpler and clearer.

Also, `EarlyContextAndPass` doesn't need to be public.

r? @Urgau
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 4 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
 - #158118 (Convert '.' to '_' in bootstrap envify)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 4 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
 - #158118 (Convert '.' to '_' in bootstrap envify)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
Rollup of 4 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
 - #158118 (Convert '.' to '_' in bootstrap envify)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #158040 (Codegen ctors in Runtime mir phase)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
 - #158118 (Convert '.' to '_' in bootstrap envify)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #158040 (Codegen ctors in Runtime mir phase)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
 - #158118 (Convert '.' to '_' in bootstrap envify)
rust-bors Bot pushed a commit that referenced this pull request Jun 19, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #157878 (`impl [const] Default for BTreeMap`)
 - #158040 (Codegen ctors in Runtime mir phase)
 - #141266 (Stabilize `substr_range` and `subslice_range`)
 - #158109 (Change `EarlyCheckNode` from a trait to an enum.)
 - #158118 (Convert '.' to '_' in bootstrap envify)
@rust-bors rust-bors Bot merged commit f74a717 into rust-lang:main Jun 19, 2026
13 of 14 checks passed
@rustbot rustbot added this to the 1.98.0 milestone Jun 19, 2026
rust-timer added a commit that referenced this pull request Jun 19, 2026
Rollup merge of #158109 - nnethercote:EarlyCheckNode-trait-to-enum, r=Urgau

Change `EarlyCheckNode` from a trait to an enum.

It only has two impls, both of which are tuples, which is ugly. An enum is much simpler and clearer.

Also, `EarlyContextAndPass` doesn't need to be public.

r? @Urgau
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