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

Clean up infer_return_ty_for_fn_sig #134259

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Conversation

compiler-errors
Copy link
Member

The code for lowering fn signatures from HIR currently is structured to prefer the recovery path (where users write -> _) over the good path. This PR pulls the recovery code out into a separate fn.

Review w/o whitespace

@rustbot
Copy link
Collaborator

rustbot commented Dec 13, 2024

r? @BoxyUwU

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

@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 Dec 13, 2024
@dtolnay
Copy link
Member

dtolnay commented Dec 14, 2024

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Dec 14, 2024

📌 Commit d82c520 has been approved by dtolnay

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 Dec 14, 2024
@dtolnay dtolnay assigned dtolnay and unassigned BoxyUwU Dec 14, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 15, 2024
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#132939 (Suggest using deref in patterns)
 - rust-lang#133293 (Updates Solaris target information, adds Solaris maintainer)
 - rust-lang#133392 (Fix ICE when multiple supertrait substitutions need assoc but only one is provided)
 - rust-lang#133986 (Add documentation for anonymous pipe module)
 - rust-lang#134022 (Doc: Extend for tuples to be stabilized in 1.85.0)
 - rust-lang#134259 (Clean up `infer_return_ty_for_fn_sig`)
 - rust-lang#134264 (Arbitrary self types v2: Weak & NonNull diagnostics)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 1fa1f30 into rust-lang:master Dec 15, 2024
6 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 15, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 15, 2024
Rollup merge of rust-lang#134259 - compiler-errors:infer-ret-ty, r=dtolnay

Clean up `infer_return_ty_for_fn_sig`

The code for lowering fn signatures from HIR currently is structured to prefer the recovery path (where users write `-> _`) over the good path. This PR pulls the recovery code out into a separate fn.

Review w/o whitespace
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