Skip to content

Conversation

@adetaylor
Copy link
Contributor

If we get past all the earlier stages of validation (in well-formedness checking and in probing) there's still a chance that resolving the self type will produce errors at the 'confirmation' stage. Add an extra note to those errors to make it clear that they were encountered while resolving the 'self' type.

This is a fairly niche case and users should not encounter it often. It's arguably not worth the extra complexity required to produce this note. Opinions welcome.

Part of #44874

r? @wesleywiser

If we get past all the earlier stages of validation (in well-formedness
checking and in probing) there's still a chance that resolving the self
type will produce errors at the 'confirmation' stage. Add an extra note
to those errors to make it clear that they were encountered while
resolving the 'self' type.

This is a fairly niche case and users may not encounter it often. It's
arguably not worth the extra complexity required to produce this note.
Opinions welcome.
@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 16, 2024
Copy link
Member

@compiler-errors compiler-errors left a comment

Choose a reason for hiding this comment

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

Yeah, I don't think this is really worth the extra overhead, especially when all it does is add a note that I think is equally as confusing to the end user.

@adetaylor
Copy link
Contributor Author

Sounds good - thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants