Skip to content

Refactor: simplify report_selection_error#154939

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
chenyukang:yukang-refactor-fn-pointer-cast-suggestion
Apr 14, 2026
Merged

Refactor: simplify report_selection_error#154939
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
chenyukang:yukang-refactor-fn-pointer-cast-suggestion

Conversation

@chenyukang
Copy link
Copy Markdown
Member

Split out suggest_cast_to_fn_pointer for better readability.

@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 Apr 7, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 7, 2026

r? @davidtwco

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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler, types
  • compiler, types expanded to 69 candidates
  • Random selection from 9 candidates

@rust-bors

This comment has been minimized.

Copy link
Copy Markdown
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

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

r=me after rebasing

View changes since this review

@chenyukang chenyukang force-pushed the yukang-refactor-fn-pointer-cast-suggestion branch from c400d43 to 41b357e Compare April 13, 2026 15:39
@rustbot

This comment has been minimized.

@chenyukang chenyukang force-pushed the yukang-refactor-fn-pointer-cast-suggestion branch from 41b357e to 270cc62 Compare April 13, 2026 15:56
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 13, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@chenyukang
Copy link
Copy Markdown
Member Author

@bors r=davidtwco

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 13, 2026

📌 Commit 270cc62 has been approved by davidtwco

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 Apr 13, 2026
rust-bors bot pushed a commit that referenced this pull request Apr 14, 2026
Rollup of 5 pull requests

Successful merges:

 - #149357 (Implement `-Z allow-partial-mitigations` (RFC 3855))
 - #154939 (Refactor: simplify report_selection_error)
 - #152688 (Trait aliases: Also imply default trait bounds on type params other than `Self`)
 - #154352 (rustdoc: dep-info for standalone markdown inputs)
 - #155195 (tidy: handle `#[cfg_attr(bootstrap, doc = "...")]` in `compiler/` comments)
@rust-bors rust-bors bot merged commit 2a0b534 into rust-lang:main Apr 14, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone Apr 14, 2026
rust-timer added a commit that referenced this pull request Apr 14, 2026
Rollup merge of #154939 - chenyukang:yukang-refactor-fn-pointer-cast-suggestion, r=davidtwco

Refactor: simplify report_selection_error

Split out `suggest_cast_to_fn_pointer` for better readability.
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.

3 participants