Skip to content

Conversation

Ezrashaw
Copy link
Contributor

@Ezrashaw Ezrashaw commented Mar 9, 2023

Fixes #39259

cc @estebank (you gave me some advice in the linked issue, would you like to review?)

@rustbot
Copy link
Collaborator

rustbot commented Mar 9, 2023

r? @petrochenkov

(rustbot has picked a reviewer for you, use r? to override)

@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 Mar 9, 2023
@petrochenkov petrochenkov 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-review Status: Awaiting review from the assignee but also interested parties. labels Mar 9, 2023
@estebank
Copy link
Contributor

estebank commented Mar 9, 2023

r=me after applying petrochenkov's requested changes. Thank you for looking at this!

@Ezrashaw Ezrashaw force-pushed the better-error-for-manual-fn-impl branch from 85a6062 to 9ead2d9 Compare March 10, 2023 05:37
@Ezrashaw
Copy link
Contributor Author

@estebank @petrochenkov I think I implemented all your feedback.

@crlf0710
Copy link
Member

Just a reminder that Fn<(&isize), Output=()> is different from Fn<(&isize,), Output=()>, the comma is important for tuple-1.

@Ezrashaw Ezrashaw force-pushed the better-error-for-manual-fn-impl branch from 9ead2d9 to a30c2c2 Compare March 10, 2023 07:32
@Ezrashaw
Copy link
Contributor Author

@crlf0710 I am aware of this, just made a mistake lol. Fixed now, thanks for the reminder.

@petrochenkov petrochenkov added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 10, 2023
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 10, 2023

📌 Commit a30c2c2 has been approved by petrochenkov

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 Mar 10, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 11, 2023
…iaskrgr

Rollup of 9 pull requests

Successful merges:

 - rust-lang#106921 (Add documentation about the memory layout of `Cell`)
 - rust-lang#108828 (Emit alias-eq when equating numeric var and projection)
 - rust-lang#108834 (Do not ICE when we have fn pointer `Fn` obligations with bound vars in the self type)
 - rust-lang#108900 (fix(lexer): print whitespace warning for \x0c)
 - rust-lang#108930 (feat: implement better error for manual impl of `Fn*` traits)
 - rust-lang#108937 (improve readability of winnowing)
 - rust-lang#108947 (Don't even try to combine consts with incompatible types)
 - rust-lang#108976 (Update triagebot rust-analyzer team mention)
 - rust-lang#108983 (Forbid `#[target_feature]` on safe default implementations)

Failed merges:

 - rust-lang#108950 (Directly construct Inherited in typeck.)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 7699462 into rust-lang:master Mar 11, 2023
@rustbot rustbot added this to the 1.70.0 milestone Mar 11, 2023
@Ezrashaw Ezrashaw deleted the better-error-for-manual-fn-impl branch March 11, 2023 07:53
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.

Poor error for manual implementations of function traits
6 participants