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

Track the instruction used to name the type and constraint in an impl. #4368

Merged
merged 5 commits into from
Oct 4, 2024

Conversation

zygoloid
Copy link
Contributor

@zygoloid zygoloid commented Oct 3, 2024

This is necessary in order to have access to the specific versions of their constant values in a generic impl.

Stub out impl deduction.

This is necessary in order to have access to the specific versions of
their constant values in a generic impl.
Copy link
Contributor

@josh11b josh11b left a comment

Choose a reason for hiding this comment

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

Can we make a test showing that we now report the correct source location for a type where we couldn't before?

(Probably not in this PR.) Some of the new references are to instructions with bare 'loc' names. It would help readability if we could get descriptive instruction names in more cases.

toolchain/check/deduce.cpp Show resolved Hide resolved
toolchain/check/handle_impl.cpp Show resolved Hide resolved
@josh11b josh11b enabled auto-merge October 3, 2024 23:37
@josh11b josh11b added this pull request to the merge queue Oct 4, 2024
Merged via the queue into carbon-language:trunk with commit 568ad19 Oct 4, 2024
8 checks passed
@zygoloid zygoloid deleted the toolchain-impl-forall branch October 7, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants