-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Better error reporting for Sync and type that impl !Sync #46678
Copy link
Copy link
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-trait-systemArea: Trait systemArea: Trait systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-trait-systemArea: Trait systemArea: Trait systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
It would make a lot more sense if when a type
impl !Syncthe compiler could report an other error than the error that comes from this impl block.For example, take a look at this code :
Which outputs :
It would be way better if it could just say that
Receiveris explicitly notSync.I know that this a bad example because the error is actually due to the fact that the compiler does not move
rxbecause we are returning a value from the call tomap(), but it was the only one that I had...